[waffle] [PATCH v2 2/3] wcore: rework non-compatible mutex initialization

Chad Versace chad.versace at intel.com
Thu Mar 26 09:25:07 PDT 2015


Quoting Jose Fonseca (2015-03-26 09:01:41)
> The approach we use to statically initialize critical sections on 
> windows is unofficial.  Read 
> http://locklessinc.com/articles/pthreads_on_windows/ for the gritty details.

From the page:
  #define PTHREAD_MUTEX_INITIALIZER {(void*)-1,-1,0,0,0,0}

(void*)-1 ??? I've never seen that before. That *is* a gritty detail.


More information about the waffle mailing list