1 Star 0 Fork 1

mobangjack / pthread-win32

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
TODO 905 Bytes
一键复制 编辑 原始数据 按行查看 历史
Things that aren't done yet
---------------------------
1. Implement PTHREAD_PROCESS_SHARED for semaphores, mutexes,
condition variables, read/write locks, barriers.
2. For version 3 onwards: the following types need to change, resulting in an ABI
change:
a) ptw32_handle_t (a.k.a. pthread_t)
Change the reuse counter from unsigned int to size_t. Type "int" on 32 bit
and 64 bit Windows is 32 bits wide.
To give an indication of relative effectiveness of the current "unsigned int",
consider an application that creates and detaches threads at the rate of 1
per millisecond. At this rate the reuse counter will max out after 49 days.
After changing to "size_t" an application compiled for x64 and creating and
detaching a thread every nanosecond would max out after 584 years.
b) pthread_once_t
Remove unused elements.
1
https://gitee.com/mobangjack/pthread-win32.git
git@gitee.com:mobangjack/pthread-win32.git
mobangjack
pthread-win32
pthread-win32
master

搜索帮助