Changeset 1578 for trunk/src/emx/include/InnoTekLIBC/thread.h
- Timestamp:
- Oct 10, 2004, 1:25:59 PM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/emx/include/InnoTekLIBC/thread.h
-
Property cvs2svn:cvs-rev
changed from
1.6
to1.7
r1577 r1578 189 189 struct __libc_sys 190 190 { 191 #ifndef __NEW_SIGNALS__ 192 /** Blocked signal mask. */ 193 sigset_t sig_blocked; 194 /** Pending signal mask. */ 195 sigset_t sig_pending; 196 /** Signal actions. */ 197 struct sigaction signals[NSIG]; 198 #endif /* !__NEW_SIGNALS__ */ 191 199 /** Directory find data entry. 192 200 * Used by __findfirst() and __findnext(). */ … … 225 233 /** This member must be initialized to NULL. */ 226 234 struct __libc_ThreadTermCbRegRec *pNext; 227 /** Flags field reserved for future use. 235 /** Flags field reserved for future use. 228 236 * Must be initalized to ZERO. */ 229 237 unsigned fFlags; 230 /** 231 * The callback function. 238 /** 239 * The callback function. 232 240 * 233 241 * @param pRegRec Registration record which the callback was registered with. 234 * @param fFlags Reserved for future use. Will always be zero when fFlags 242 * @param fFlags Reserved for future use. Will always be zero when fFlags 235 243 * in the RegRec is zero. 236 244 */ … … 325 333 /** 326 334 * Get the thread structure for a thread selected by a custom callback function. 327 * 335 * 328 336 * @returns Pointer to the selected thread. 329 337 * The caller _must_ call __libc_threadRelease() when it's done using the … … 339 347 * pBest The current best thread. 340 348 * pvParam User parameter. 341 * 349 * 342 350 * @param pvParam User Parameter. 343 351 */ … … 345 353 346 354 347 /** 348 * Enumerates all the threads LIBC is aware of subjecting each of them to a 355 /** 356 * Enumerates all the threads LIBC is aware of subjecting each of them to a 349 357 * caller specified callback function. 350 358 * … … 359 367 * pCur The current thread. 360 368 * pvParam User parameter. 361 * 369 * 362 370 * @param pvParam User Parameter. 363 371 */ … … 407 415 408 416 409 /** 417 /** 410 418 * Register a thread destruction callback. 411 419 * 412 * This will be called when one thread is terminating normally, i.e. calling 420 * This will be called when one thread is terminating normally, i.e. calling 413 421 * _endthread() or returning from it's thread function. 414 * When LIBC implements pthreads basics any new non-abnormal thread exit will 422 * When LIBC implements pthreads basics any new non-abnormal thread exit will 415 423 * cause a callback too. 416 424 * … … 421 429 * to unregister a callback at present. 422 430 * 423 * @remark We might wanna extend the API at a later point for calling back 424 * at abnormal termination and such. Such extensions will be done 431 * @remark We might wanna extend the API at a later point for calling back 432 * at abnormal termination and such. Such extensions will be done 425 433 * using the fFlags member of __LIBC_THREADTERMCBREGREC and the fFlags 426 434 * parameter to the callback. … … 432 440 * 433 441 * Not called for thread 1. 434 * 442 * 435 443 * @param fFlags Reserved for termination reasons. 436 444 * Zero means normal exit, no other codes have been defined. … … 479 487 int __libc_TLSSet(int iIndex, void *pvValue); 480 488 481 /** 489 /** 482 490 * Register a thread termination destructor for an TLS entry. 483 491 * 484 492 * The destructor function will be called when a thread terminates 485 493 * in a normal fashion and the TLS entry iTLSIndex of that thread is 486 * not NULL. 494 * not NULL. 487 495 * 488 496 * There will be no callbacks in thread 1. … … 511 519 /** 512 520 * Get pointer to the destructor function registered for the given TLS entry. 513 * 521 * 514 522 * @returns NULL if invalid entry, errno set. 515 523 * @returns NULL if no entry registered. -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.