]> Zhao Yanbai Git Server - minix.git/commit
- Refactor mthread structure fields to prevent name clashes
authorThomas Veerman <thomas@minix3.org>
Fri, 18 Mar 2011 10:29:54 +0000 (10:29 +0000)
committerThomas Veerman <thomas@minix3.org>
Fri, 18 Mar 2011 10:29:54 +0000 (10:29 +0000)
commitc8d0edc06a5649b75de5321fd16b51f0e0467be4
tree983e40e0478b6f029b56e277f599e17f2796d392
parent03a7d0e8ae1094eb95a44ce2ba805b2f9ae5fd68
- Refactor mthread structure fields to prevent name clashes
- Remove sanity checks for initialized mutexes and condition variables. This
  significantly boosts performance. The checks can be turned back on by
  compiling libmthread with MTHREAD_STRICT. According to POSIX operations on
  uninitialized variables are a MAY fail if, therefore allowing this
  optimization.
- Test59 has to be accommodated to the lack of sanity checks on uninitialized
  variables in the library. It specifically tests for them and will run into
  segfaults when the checks are absent in the library.
- Fix a few bugs related to the scheduler
- Do some general code cleanups
common/include/minix/mthread.h
lib/libmthread/allocate.c
lib/libmthread/attribute.c
lib/libmthread/condition.c
lib/libmthread/global.h
lib/libmthread/mutex.c
lib/libmthread/proto.h
lib/libmthread/queue.c
lib/libmthread/scheduler.c
test/test59.c