minix/lib/libmthread
Lionel Sambuc d3d33afe9f Experimental pthread compatibility library
This patch adds pthread compatibility by using libmthread.

To use this with a program using pthreads, you have to replace
  #include <pthread>
with
  #define _MTHREADIFY_PTHREADS
  #include <minix/mthreads>

This also changes the initialization function to be a constructor, which
is implicitly called before the call to main. This allows for
conformance with pthreads, while not paying a high price by checking on
each mthread_* call whether the library has been initialized or not.

As mthread_init is now a constructor, it also has been set as static, and
relevent calls removed from programs using it.

Change-Id: I2aa375db557958d2bee9a70d285aabb990c88f00
2014-07-28 17:05:08 +02:00
..
allocate.c Experimental pthread compatibility library 2014-07-28 17:05:08 +02:00
attribute.c Experimental pthread compatibility library 2014-07-28 17:05:08 +02:00
condition.c Experimental pthread compatibility library 2014-07-28 17:05:08 +02:00
event.c Experimental pthread compatibility library 2014-07-28 17:05:08 +02:00
global.h libmthread: add possibility to randomize scheduler 2013-01-11 09:18:35 +00:00
key.c Experimental pthread compatibility library 2014-07-28 17:05:08 +02:00
Makefile Experimental pthread compatibility library 2014-07-28 17:05:08 +02:00
misc.c <machine/mcontext.h> 2014-03-03 20:47:03 +01:00
mutex.c Experimental pthread compatibility library 2014-07-28 17:05:08 +02:00
proto.h Experimental pthread compatibility library 2014-07-28 17:05:08 +02:00
pthread_compat.c Experimental pthread compatibility library 2014-07-28 17:05:08 +02:00
queue.c libmthread: add possibility to randomize scheduler 2013-01-11 09:18:35 +00:00
rwlock.c Experimental pthread compatibility library 2014-07-28 17:05:08 +02:00
scheduler.c Experimental pthread compatibility library 2014-07-28 17:05:08 +02:00
shlib_version Experimental pthread compatibility library 2014-07-28 17:05:08 +02:00