| Commit message (Collapse) | Author | Age |
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
| |
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)
|
| |
|
|
|
| |
The block must execute before the test completes.
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
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.
|
|
|
|
| |
This reverts commit 585330a68d00c4d76927ff7bf4829471944358ab.
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
| |
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)
|
|
|
|
|
|
|
| |
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)
|
|
|
|
|
|
| |
Fix build for older SDKs.
Rename parameter to avoid issue with extra compiler flags.
TBR=dmaclach
|
|
Add a blocks API to NSThread.
R=thomasvl,grobbins
DELTA=238 (236 added, 1 deleted, 1 changed)
|