Changeset 23530 for trunk/Ohana/src/opihi/pantasks/task.c
- Timestamp:
- Mar 25, 2009, 11:56:09 AM (17 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/pantasks/task.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/pantasks/task.c
r14590 r23530 11 11 if (argc != 2) goto usage; 12 12 13 JobTaskLock(); 13 14 task = FindTask (argv[1]); 14 15 if (task == NULL) { /**** new task ****/ … … 18 19 SetNewTask (task); 19 20 } 21 JobTaskUnlock(); 22 20 23 /* While a task is being defined, it is removed from the task list. The new task is added to the task list 21 24 when the definition process is complete. … … 55 58 56 59 case TASK_END: 57 /* I need to add in a test here to see if all task elements58 have been defined. delete the task if not */59 60 free (input); 60 61 /* validate the new task: all mandatory elements defined? */ … … 63 64 return (FALSE); 64 65 } 66 JobTaskLock(); 65 67 RegisterNewTask (); 68 JobTaskUnlock(); 66 69 return (TRUE); 67 70 break;
Note:
See TracChangeset
for help on using the changeset viewer.
