mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-08 08:17:31 +09:00
Issue #1338 - Part 1: Update NSPR to 4.24
This commit is contained in:
parent
f6096004d7
commit
1a92143e68
454 changed files with 42944 additions and 48647 deletions
|
|
@ -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");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue