Changeset 2943 in Sophya for trunk/SophyaLib/SysTools/zthread.cc
- Timestamp:
- Apr 26, 2006, 5:22:09 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/SysTools/zthread.cc
r2759 r2943 6 6 #include <stdlib.h> 7 7 #include <stdio.h> 8 #include <pthread.h> 9 #include <signal.h> 8 10 9 11 /*! … … 104 106 } 105 107 108 /*! 109 Calls the pthread_kill to deliver a signal to the corresponding thread 110 */ 111 void ZThread::kill(int sig) 112 { 113 if (!_initok) throw ZThreadExc("ZThread::kill() - thread not started !"); 114 int rc = pthread_kill(_thr, sig); 115 CheckSt(rc,"ZThread::kill() - Pb pthread_kill() "); 116 setRC(-76); 117 } 118 106 119 107 120 /*!
Note:
See TracChangeset
for help on using the changeset viewer.