comparison src/parallel_execution/OneDimIterator.cbc @ 386:89a9e9c14498

Add comment to createOneDimiterateTask
author Tatsuki IHA <innparusu@cr.ie.u-ryukyu.ac.jp>
date Wed, 26 Jul 2017 18:57:19 +0900
parents f1d111e293c4
children
comparison
equal deleted inserted replaced
385:c1512f358c37 386:89a9e9c14498
12 oneDimIterator->loopCounter = new LoopCounter(); 12 oneDimIterator->loopCounter = new LoopCounter();
13 oneDimIterator->loopCounter->i = 0; 13 oneDimIterator->loopCounter->i = 0;
14 return iterator; 14 return iterator;
15 } 15 }
16 16
17 /**
18 * create iterateTask with index, that copy from task argument
19 * @return created iterateTask
20 * @param task task of the copy source
21 * @x index
22 */
17 struct Context* createOneDimIterateTask(struct Context* task, int x) { 23 struct Context* createOneDimIterateTask(struct Context* task, int x) {
18 struct Context* task1 = NEW(struct Context); 24 struct Context* task1 = NEW(struct Context);
19 initContext(task1); 25 initContext(task1);
20 task1->taskManager = task->taskManager; 26 task1->taskManager = task->taskManager;
21 task1->next = task->next; 27 task1->next = task->next;