Legacy thread function
Thread function with user data, used eg. in thread pool.
Fake synchronous version of the thread pool For measurement purpose, makes it easier to measure actual CPU time spent.
Rewrite of the ThreadPool using condition variables. FUTURE: this could be speed-up by using futures. Description of the task and associated condition+mutex would go in an external struct. Note: the interface of the thread-pool itself is not thread-safe, you cannot give orders from multiple threads at once.
Get the macOS version we are running on. Note: it only makes sense for macOS, not iOS. Note: patch always return zero for now.
Launch a function in a newly created thread, which is destroyed afterwards. Return the thread so that you can call .join() on it.
Get the current thread OS handle. The returned ID is just used for display. You can't get a Thread out of it.
Optimistic thread, failure not supported
Distributed under the Boost Software License 1.0. (See accompanying file LICENSE)
Copyright Sean Kelly 2005 - 2012. Copyright (c) 2009-2011, David Simcha. Copyright Guillaume Piolat 2016.
Threads and thread-pool.