google / xrtl

Cross-platform Real-Time Rendering Library
Apache License 2.0
128 stars 26 forks source link

Initial threading API #15

Closed benvanik closed 7 years ago

benvanik commented 7 years ago

Implemented for win32 and pthreads, tested passing on win/mac/linux.

epoll and kqueue will make this run better on linux/android and macos/ios respectively but that's an optimization and pthreads should be functionally correct for now. The pthreads implementation will likely always be the choice for emscripten.