]> Zhao Yanbai Git Server - minix.git/commit
Revamp the mthread library and update test59
authorThomas Veerman <thomas@minix3.org>
Thu, 30 Sep 2010 13:44:13 +0000 (13:44 +0000)
committerThomas Veerman <thomas@minix3.org>
Thu, 30 Sep 2010 13:44:13 +0000 (13:44 +0000)
commita7072a5e1c06a1174624cbf6f53e37e1174a4bfc
tree23a83b3fe06e2378226080dd9c0d5d12ce3fdd72
parent3736ce3f559af88d675c63e3bef5b4e1a09b84ee
Revamp the mthread library and update test59

Before, the 'main thread' of a process was never taken into account anywhere in
the library, causing mutexes not to work properly (and consequently, neither
did the condition variables). For example, if the 'main thread' (that is, the
thread which is started at the beginning of a process; not a spawned thread by
the library) would lock a mutex, it wasn't actually locked.
include/minix/mthread.h
lib/libmthread/allocate.c
lib/libmthread/attribute.c
lib/libmthread/condition.c
lib/libmthread/global.h
lib/libmthread/misc.c
lib/libmthread/mutex.c
lib/libmthread/proto.h
lib/libmthread/queue.c
lib/libmthread/scheduler.c
test/test59.c