Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | thread: Allow thread ID to be value returned by gettid() | Thomas Egerer | 2016-03-04 | 1 | -0/+4 |
| | | | | Signed-off-by: Thomas Egerer <thomas.egerer@secunet.com> | ||||
* | thread: Add a function to pop and call all registered cleanup handlers | Martin Willi | 2015-04-15 | 1 | -0/+20 |
| | |||||
* | windows: Remove useless assignment in put_thread() | Tobias Brunner | 2014-07-02 | 1 | -1/+1 |
| | |||||
* | thread-value: Defer cleanup handling to thread termination on Windows | Martin Willi | 2014-06-17 | 1 | -30/+44 |
| | | | | | | | | | | | Instead of cleaning up all thread-values during destruction, cleanup handler is invoked when a thread detaches. Thread detaching is cough using the Windows DllMain() entry point, and allows us to basically revert 204098a7. Using this mechanism, we make sure that the cleanup handler is invoked by the the correct thread. Further, this mechanism works for externally-spawned threads which run outside of our thread_cb() routine, and works more efficiently with short-running threads. | ||||
* | windows: Use WINAPI call convention for Windows API callbacks | Martin Willi | 2014-06-06 | 1 | -2/+4 |
| | | | | | For x86_64 it does not actually matter, but for i686 builds the call convention is different with WINAPI. | ||||
* | windows: Include for Vista instead of defining CondVar/SRWLock functions ourself | Martin Willi | 2014-06-04 | 1 | -3/+2 |
| | |||||
* | thread-value: Immediately cleanup all Windows TLS values on destroy | Martin Willi | 2014-06-04 | 1 | -1/+35 |
| | |||||
* | windows: Prevent queueing of multiple thread cancel APCs | Martin Willi | 2014-06-04 | 1 | -4/+13 |
| | | | | | This avoids any races during cleanup invocation if multiple cancel() requests come in. | ||||
* | windows: Provide a complete native Windows threading backend | Martin Willi | 2014-06-04 | 1 | -0/+619 |