|
BFLibC 0.1
C Library
|
Data Fields | |
| pthread_mutex_t | m |
| int | error |
| pthread_t | p |
| pthread_attr_t | attr |
| unsigned char | flags |
| BFLock | waitlock |
| int | retaincount |
async id
| pthread_attr_t _BFThreadAsyncID::attr |
holds attributes for p
| int _BFThreadAsyncID::error |
holds any error code that gets passed during creation of this object
| unsigned char _BFThreadAsyncID::flags |
||||||isCanceled|releaseQueued|isRunning|
isRunning: true if callback has not returned releaseQueued: true if own has called destroy while we were running the callback isCanceled: true if owner called BFThreadAsyncCancel
| pthread_mutex_t _BFThreadAsyncID::m |
mutex for accessing our members
| pthread_t _BFThreadAsyncID::p |
main pthread object
| int _BFThreadAsyncID::retaincount |
nonzero
| BFLock _BFThreadAsyncID::waitlock |
used by user if they want to wait for thread to finish
this gets released when callback is returned in _BFThreadStartRoutine