119 |
to force system calls to exit with EINTR */ |
to force system calls to exit with EINTR */ |
120 |
} |
} |
121 |
|
|
122 |
|
/* |
123 |
|
* This function is only used for initializing an ILThread |
124 |
|
* structure for threads not created by pnet. |
125 |
|
*/ |
126 |
|
void _ILThreadInitHandleSelf(ILThread *thread) |
127 |
|
{ |
128 |
|
/* Set the thread handle and identifier for the thread */ |
129 |
|
thread->handle = pthread_self(); |
130 |
|
thread->identifier = thread->handle; |
131 |
|
} |
132 |
|
|
133 |
|
void _ILThreadDestroyHandleSelf(ILThread *thread) |
134 |
|
{ |
135 |
|
/* there is nothing to do with pthreads. */ |
136 |
|
} |
137 |
|
|
138 |
void _ILThreadInitSystem(ILThread *mainThread) |
void _ILThreadInitSystem(ILThread *mainThread) |
139 |
{ |
{ |
140 |
struct sigaction action; |
struct sigaction action; |