summaryrefslogtreecommitdiffstats
path: root/include/objalloc.h
diff options
context:
space:
mode:
authorThomas Pfaff <tpfaff@gmx.net>2003-06-24 20:14:01 +0000
committerThomas Pfaff <tpfaff@gmx.net>2003-06-24 20:14:01 +0000
commite1e196a225a1fee14447b5ef409c5b3890f98334 (patch)
tree58657e1abe9c0a82f29fce455a0213425a1988d7 /include/objalloc.h
parentb8f7ea5ccba184f7a3718312a186b8ea45a153ed (diff)
downloadcygnal-e1e196a225a1fee14447b5ef409c5b3890f98334.tar.gz
cygnal-e1e196a225a1fee14447b5ef409c5b3890f98334.tar.bz2
cygnal-e1e196a225a1fee14447b5ef409c5b3890f98334.zip
* thread.cc (MTinterface::fixup_after_fork): Fix thread list after fork.
(pthread::threads): Instantiate. (pthread::pthread): Initialize running and suspendend. Initialize next with NULL. Add thread to thread list if it is not the null_pthread. (pthread::~pthread): Remove thread from thread list if it is not the null_pthread. (pthread::postcreate): Set running flag. (pthread::exit): Reset running flag. (pthread::cancel): Try to cancel thread only if still running. (pthread::_fixup_after_fork): Implement. (pthread::detach): Check if thread is still running before detach. * thread.h (pthread::running): New member. (pthread::next): Ditto. (pthread::fixup_after_fork): New static method. (pthread::threads): New static method. (pthread::_fixup_after_fork): New method.
Diffstat (limited to 'include/objalloc.h')
0 files changed, 0 insertions, 0 deletions