Changeset 19297
- Timestamp:
- Aug 29, 2008, 4:23:09 PM (18 years ago)
- Location:
- trunk/psLib/src/sys
- Files:
-
- 2 edited
-
psThread.c (modified) (2 diffs)
-
psThread.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/sys/psThread.c
r19057 r19297 66 66 psFree(job->type); 67 67 psFree(job->args); 68 psFree(job->results); 68 69 return; 69 70 } … … 77 78 job->type = psStringCopy(type); 78 79 job->args = psArrayAlloc(0); 80 job->results = NULL; 79 81 return job; 80 82 } -
trunk/psLib/src/sys/psThread.h
r19057 r19297 4 4 * 5 5 * @author EAM, IFA 6 * @version $Revision: 1. 5$ $Name: not supported by cvs2svn $7 * @date $Date: 2008-08- 14 03:22:13$6 * @version $Revision: 1.6 $ $Name: not supported by cvs2svn $ 7 * @date $Date: 2008-08-30 02:23:09 $ 8 8 * 9 9 * Copyright 2004-2005 Insitute for Astronomy, University of Hawaii … … 26 26 psString type; // Type of thread 27 27 psArray *args; // Arguments to job 28 psArray *results; // Results of job 28 29 } psThreadJob; 29 30 … … 44 45 45 46 /// Function to execute a thread job 46 typedef bool (*psThreadTaskFunction)( constpsThreadJob *job);47 typedef bool (*psThreadTaskFunction)(psThreadJob *job); 47 48 48 49 /// Task that is executed on a thread
Note:
See TracChangeset
for help on using the changeset viewer.
