aboutsummaryrefslogtreecommitdiff
path: root/Foundation/GTMNSThread+Blocks.h
Commit message (Collapse)AuthorAge
* Fixes up a race condition in GTMNSThread+Blocks (#181)Gravatar dmaclach2018-11-12
| | | | | There was a race between the thread being finished and isFinished/isExecuting reporting correctly. There may have also been a locking issue on older single processor phones.
* Revert "Fix up a race condition in GTMSimpleWorkerThread"Gravatar Thomas Van Lenten2018-11-08
| | | | This reverts commit 585330a68d00c4d76927ff7bf4829471944358ab.
* Fix up a race condition in GTMSimpleWorkerThreadGravatar Dave MacLachlan2018-11-08
| | | | | | | Basically a complete rewrite of GTMSimpleWorkerThread that should get rid of a race condition when stopping tests and testing for "isExecuting/isFinished". It does change the observed behaviour of GTMSimpleWorkerThread a little in that "start" no longer blocks until the thread is starting, and we removed the unused "stop" method.
* Fixing block types to support -Wstrict-prototypes.Gravatar Thomas Van Lenten2017-10-06
|
* First cut at pruning things/updating things.Gravatar dmaclach2016-10-07
| | | | | | | | | | | | | | | Remove a bunch of code that Google stopped using/maintaining rather than trying to update it it. Some would be hard to update, some actually has system provided replacements; others are patterns that just don't seem as common now. Prune out the code related to macOS <= 10.5, start pruning some of the really old iOS support also. Get the projects mostly limping again with modern Xcodes so tests can be run. If someone ends up on this commit via history for something they still find as useful, feel free to do a pull request to bring the snippet of code back to life and update it for current SDKs.
* [Author: aharper]Gravatar gtm.daemon2012-12-18
| | | | | | | | | | Improve worker thread implementation: - Handle more of the NSThread interface. - Allow cancel or stop before we've started. - Cache looked up pthread_setname_np symbol in thread local storage. R=dmaclach,thomasvl APPROVED=dmaclach DELTA=441 (339 added, 38 deleted, 64 changed)
* CFRunLoopStop does NOT act like "join" and block until the thread is stopped.Gravatar thomasvl2012-12-09
| | | | | Use a lock to wait before returning.
* [Author: aharper]Gravatar gtm.daemon2012-11-15
| | | | | | | Pick up missing define for iPhone. R=dmaclach APPROVED=dmaclach DELTA=1 (1 added, 0 deleted, 0 changed)
* [Author: aharper]Gravatar gtm.daemon2012-11-15
| | | | | | | | Exclude on 10.4 and only set name when pthread_setname_np is available (10.6 and later). R=dmaclach,thomasvl APPROVED=dmaclach DELTA=19 (17 added, 0 deleted, 2 changed)
* [Author: dmaclach]Gravatar gtm.daemon2012-11-14
| | | | | | Add GTMSimpleWorkerThread for easily creating a thread that just handles blocks and performSelector calls. R=thomasvl DELTA=52 (52 added, 0 deleted, 0 changed)
* [Author: thomasvl]Gravatar gtm.daemon2012-03-22
| | | | | | Fix build for older SDKs. Rename parameter to avoid issue with extra compiler flags. TBR=dmaclach
* [Author: dmaclach]Gravatar gtm.daemon2012-03-21
Add a blocks API to NSThread. R=thomasvl,grobbins DELTA=238 (236 added, 1 deleted, 1 changed)