mapi: rewrite u_current_init() function without u_thread_self()
authorBrian Paul <brianp@vmware.com>
Thu, 5 Mar 2015 02:17:57 +0000 (19:17 -0700)
committerBrian Paul <brianp@vmware.com>
Thu, 5 Mar 2015 13:59:43 +0000 (06:59 -0700)
commit458c7490c29ef2960a33a089f65490e044da5d27
treeed6a48f2a292815dc2fa17e2925aa5149f23ab1c
parent6b5eb7bce6ac5351b0c96252a1c8738f51834e1d
mapi: rewrite u_current_init() function without u_thread_self()

Remove u_thread_self() since u_thread.h is going away soon.
Create a simple thread ID abstraction which wraps WIN32 or c11 threads.
This also gets rid of the questionable casting of thrd_t to an unsigned
long.

Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: José Fonseca <jfonseca@vmware.com>
src/mapi/u_current.c
src/mapi/u_thread.h