]> Kevux Git Server - fll/commit
Bugfix: fix thread initializers and add documentation on thread allocation requirements.
authorKevin Day <thekevinday@gmail.com>
Mon, 29 Mar 2021 01:32:33 +0000 (20:32 -0500)
committerKevin Day <thekevinday@gmail.com>
Mon, 29 Mar 2021 01:32:33 +0000 (20:32 -0500)
commitb8a8b3d3625a74c5ecb53de6880e9be59f0603f9
tree798a7a01a8028ba0c53ce5f998f2deb01ae18105
parent7294a73da844aa4b8dbb38afadfaa2ffe5e2828f
Bugfix: fix thread initializers and add documentation on thread allocation requirements.

The PTHREAD_ONCE_INIT cannot be deleted.
The pthread_spinlock_t cannot use PTHREAD_MUTEX_INITIALIZER, so instead use ((pthread_spinlock_t) 0xFFFFFFFF).

Many of the thread structures require dynamic initialization.
Document this behavior.
level_0/f_thread/c/thread-common.h