aboutsummaryrefslogtreecommitdiff
path: root/Foundation/GTMNSThread+BlocksTest.m
Commit message (Collapse)AuthorAge
* Drop the thread name test.Gravatar Thomas Van Lenten2018-11-20
| | | | | | The helpers not mess with names, so this was actually testing Apple's API, which does seem to have bugs/race conditions, so stop paying attention to it.
* Fix up GTMNSThread+block test. (#214)Gravatar dmaclach2018-11-19
| | | | | | | | Made an assumption about how runloops worked in all versions of iOS. Appears it was wrong in 32 bit versions on single processor. Runloop executes all input from an input source in a single burst which caused a test to fail. (iOS 8.4 on iPhone4s simulator)
* Fix up race between NSThread setName and pthread_getname on the thread. (#213)Gravatar dmaclach2018-11-19
|
* Fix up race in testPThreadName. (#211)Gravatar dmaclach2018-11-15
| | | The block must execute before the test completes.
* Fix up timeout for test. (#205)Gravatar dmaclach2018-11-13
| | | | | The changes here had a test looping 5 times with a 1 second wait trying to finish in a 5 second window. That's a little too close for flakiness. Increased time out to 10 seconds.
* 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.
* 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)
* [Author: thomasvl]Gravatar gtm.daemon2012-03-22
| | | | | | | SDK might allow blocks, but the code the test calls requires it (and 10.5 thread apis), so instead check the min versions before building the test. R=dmaclach DELTA=3 (0 added, 0 deleted, 3 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)