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
..
2012-12-07 13:58:06 +01:00
2014-03-01 09:04:51 +01:00
2013-10-12 11:51:55 -04:00
2014-03-03 20:47:00 +01:00
2014-03-01 09:04:50 +01:00
2014-03-03 20:47:00 +01:00
2014-03-01 09:04:55 +01:00
2014-03-01 09:04:58 +01:00
2012-09-24 15:53:43 +02:00
2012-12-07 13:58:06 +01:00
2014-03-01 09:04:58 +01:00
2013-02-26 09:44:20 +00:00
2014-02-18 11:25:01 +01:00
2014-03-01 09:05:00 +01:00
2013-08-27 16:16:03 +00:00
2014-03-03 20:47:06 +01:00
2014-03-03 20:47:06 +01:00
2014-03-03 20:47:00 +01:00
2014-03-01 09:04:51 +01:00
2013-08-20 11:37:40 +02:00
2013-02-11 19:31:57 +01:00
2014-03-03 20:47:01 +01:00
2012-12-07 13:58:06 +01:00
2014-03-02 12:28:32 +01:00
2014-03-01 09:05:00 +01:00
2014-02-18 11:25:02 +01:00
2014-03-01 09:05:01 +01:00
2014-03-03 20:47:02 +01:00
2014-03-03 20:47:05 +01:00
2012-12-07 13:58:06 +01:00
2014-03-02 12:28:32 +01:00
2014-02-18 11:25:01 +01:00