c11: Import threads.h emulation library.
authorJosé Fonseca <jfonseca@vmware.com>
Tue, 12 Mar 2013 10:37:46 +0000 (10:37 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Thu, 23 Jan 2014 12:55:55 +0000 (12:55 +0000)
commitecaa81bd9648131e01f9ad4fd9d185370df8e872
tree9c71722d8a20faf648c52775cd80fabf8c4b40f9
parent349f0a94aeaded3125d5c7f31ae2092f1b4a5727
c11: Import threads.h emulation library.

Implementation is based of https://gist.github.com/2223710 with the
following modifications:
- inline implementatation
- retain XP compatability
- add temporary hack for static mutex initializers (as they are not part
  of the stack but still widely used internally)
- make TIME_UTC a conditional macro (some system headers already define
  it, so this prevents conflict)
- respect HAVE_PTHREAD macro

Reviewed-by: Brian Paul <brianp@vmware.com>
Acked-by: Ian Romanick <ian.d.romanick@intel.com>
Acked-by: Chad Versace <chad.versace@linux.intel.com>
include/c11/threads.h [new file with mode: 0644]
include/c11/threads_posix.h [new file with mode: 0644]
include/c11/threads_win32.h [new file with mode: 0644]