Changeset 1375:7463cec1af99
- Timestamp:
- 10/17/09 11:39:18 (2 years ago)
- Branch:
- default
- Children:
- 1376:0c27d6fe47b2, 1377:907b0a6f6889
- Location:
- trunk/include/libdodo
- Files:
-
- 1 edited
- 1 copied
-
pcExecutionManager.inline (modified) (5 diffs)
-
pcExecutionManagerEx.h (copied) (copied from trunk/include/libdodo/pcExecutionThreadEx.h) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/libdodo/pcExecutionManager.inline
r1374 r1375 31 31 32 32 #include <libdodo/pcExecutionManager.h> 33 #include <libdodo/pcExecutionManagerEx.h> 33 34 #include <libdodo/types.h> 34 35 #include <libdodo/pcSyncSection.h> … … 94 95 95 96 if (job == handles.end()) 96 throw ;97 throw exception::basic(exception::MODULE_PCEXECUTIONMANAGER, MANAGEREX_RUN, exception::ERRNO_LIBDODO, MANAGEREX_NOTFOUND, PCEXECUTIONMANAGEREX_NOTFOUND_STR, __LINE__, __FILE__); 97 98 98 99 job->second.run(); … … 110 111 111 112 if (job == handles.end()) 112 throw ;113 throw exception::basic(exception::MODULE_PCEXECUTIONMANAGER, MANAGEREX_STOP, exception::ERRNO_LIBDODO, MANAGEREX_NOTFOUND, PCEXECUTIONMANAGEREX_NOTFOUND_STR, __LINE__, __FILE__); 113 114 114 115 job->second.stop(); … … 140 141 141 142 if (job == handles.end()) 142 throw ;143 throw exception::basic(exception::MODULE_PCEXECUTIONMANAGER, MANAGEREX_WAIT, exception::ERRNO_LIBDODO, MANAGEREX_NOTFOUND, PCEXECUTIONMANAGEREX_NOTFOUND_STR, __LINE__, __FILE__); 143 144 144 145 return job->second.wait(); … … 170 171 171 172 if (job == handles.end()) 172 throw ;173 throw exception::basic(exception::MODULE_PCEXECUTIONMANAGER, MANAGEREX_ISRUNNING, exception::ERRNO_LIBDODO, MANAGEREX_NOTFOUND, PCEXECUTIONMANAGEREX_NOTFOUND_STR, __LINE__, __FILE__); 173 174 174 175 return job->second.isRunning(); -
trunk/include/libdodo/pcExecutionManagerEx.h
r1374 r1375 1 1 /*************************************************************************** 2 * pcExecution ThreadEx.h2 * pcExecutionManagerEx.h 3 3 * 4 4 * Wed Oct 07 2009 … … 28 28 */ 29 29 30 #ifndef _PCEXECUTION THREADEX_H_31 #define _PCEXECUTION THREADEX_H_ 130 #ifndef _PCEXECUTIONMANAGEREX_H_ 31 #define _PCEXECUTIONMANAGEREX_H_ 1 32 32 33 33 #include <libdodo/directives.h> … … 41 41 * libdodo defined errors 42 42 */ 43 enum threadExR { 44 THREADEX_ISALREADYRUNNING, 45 THREADEX_ISNOTLAUNCHED, 46 THREADEX_ISDETACHED, 43 enum managerExR { 44 MANAGEREX_NOTFOUND, 47 45 }; 48 46 … … 50 48 * libdodo defined errors explanation 51 49 */ 52 #define PCEXECUTIONTHREADEX_ISALREADYRUNNING_STR "Thread is currently running" 53 #define PCEXECUTIONTHREADEX_ISNOTLAUNCHED_STR "Thread is not launched" 54 #define PCEXECUTIONTHREADEX_ISDETACHED_STR "Thread is detached" 55 50 #define PCEXECUTIONMANAGEREX_NOTFOUND_STR "Job was not found" 56 51 /** 57 52 * ID of function where exception was thrown 58 53 */ 59 enum threadFunctionsID { 60 THREADEX_RUN, 61 THREADEX_WAIT, 62 THREADEX_STOP, 63 THREADEX_ISRUNNING, 64 THREADEX_CONSTRUCTOR, 65 #ifdef DL_EXT 66 THREADEX_MODULE, 67 #endif 54 enum managerFunctionsID { 55 MANAGEREX_RUN, 56 MANAGEREX_WAIT, 57 MANAGEREX_STOP, 58 MANAGEREX_ISRUNNING, 68 59 }; 69 60 };
Note: See TracChangeset
for help on using the changeset viewer.
