diff options
author | wolfbeast <mcwerewolf@wolfbeast.com> | 2020-01-02 21:01:38 +0100 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2020-01-02 21:01:38 +0100 |
commit | f7d30133221896638f7bf4f66c504255c4b14f48 (patch) | |
tree | 5f3e07a049f388a3a309a615b8884318f6668a98 /nsprpub/pr/tests/yield.c | |
parent | 26b297510a11758727438df4669357a2a2bc42ce (diff) | |
download | UXP-f7d30133221896638f7bf4f66c504255c4b14f48.tar UXP-f7d30133221896638f7bf4f66c504255c4b14f48.tar.gz UXP-f7d30133221896638f7bf4f66c504255c4b14f48.tar.lz UXP-f7d30133221896638f7bf4f66c504255c4b14f48.tar.xz UXP-f7d30133221896638f7bf4f66c504255c4b14f48.zip |
Issue #1338 - Part 1: Update NSPR to 4.24
Diffstat (limited to 'nsprpub/pr/tests/yield.c')
-rw-r--r-- | nsprpub/pr/tests/yield.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/nsprpub/pr/tests/yield.c b/nsprpub/pr/tests/yield.c index c68166e17..eb55926b5 100644 --- a/nsprpub/pr/tests/yield.c +++ b/nsprpub/pr/tests/yield.c @@ -17,7 +17,7 @@ #define THREADS 10 -void +void threadmain(void *_id) { int id = (int)_id; @@ -43,14 +43,15 @@ int main(int argc, char **argv) for (index=0; index<THREADS; index++) { a[index] = PR_CreateThread(PR_USER_THREAD, - threadmain, - (void *)index, - PR_PRIORITY_NORMAL, - index%2?PR_LOCAL_THREAD:PR_GLOBAL_THREAD, - PR_JOINABLE_THREAD, - 0); + threadmain, + (void *)index, + PR_PRIORITY_NORMAL, + index%2?PR_LOCAL_THREAD:PR_GLOBAL_THREAD, + PR_JOINABLE_THREAD, + 0); } - for(index=0; index<THREADS; index++) + for(index=0; index<THREADS; index++) { PR_JoinThread(a[index]); + } printf("main dying\n"); } |