| Commit message (Collapse) | Author | Age |
|
|
|
|
| |
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.
|
|
|
|
|
| |
hit at startup on the iOS side.
DELTA=7 (7 added, 0 deleted, 0 changed)
|
|
|
| |
DELTA=26 (0 added, 0 deleted, 26 changed)
|
|
|
|
|
|
|
|
| |
Fix pthread_setname_np() call for empty strings (some OS versions don't
handle NULL).
R=dmaclach,thomasvl
APPROVED=dmaclach
DELTA=7 (6 added, 0 deleted, 1 changed)
|
|
|
|
|
|
|
| |
Move worker thread globals into the right #ifdef guard for SDK version.
R=dmaclach,thomasvl
APPROVED=thomasvl
DELTA=8 (4 added, 4 deleted, 0 changed)
|
|
|
|
|
|
|
|
|
|
| |
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)
|
|
|
|
|
| |
Use a lock to wait before returning.
|
|
|
|
|
|
|
|
| |
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)
|
|
|
|
|
|
| |
Fix GTMNSThread+Blocks compiling on older compilers.
R=thomasvl
DELTA=12 (6 added, 6 deleted, 0 changed)
|
|
|
|
|
|
| |
Add GTMSimpleWorkerThread for easily creating a thread that just handles blocks and performSelector calls.
R=thomasvl
DELTA=52 (52 added, 0 deleted, 0 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)
|