summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrpj <rpj>2011-03-26 07:54:10 +0000
committerrpj <rpj>2011-03-26 07:54:10 +0000
commite2f7e5c04fe8ac17483b009943e5a7c121c06fdf (patch)
tree1bee206c7d29753b5220838c070692c897804070
parent1bc29dadbf50406f3b04f12c44efb6057a74612e (diff)
renamed function
-rwxr-xr-xtests/sequence1.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/sequence1.c b/tests/sequence1.c
index d7c6e0b..e7d7db0 100755
--- a/tests/sequence1.c
+++ b/tests/sequence1.c
@@ -96,7 +96,7 @@ static UINT64 seqmap[NUMTHREADS+2];
void * func(void * arg)
{
sched_yield();
- seqmap[(int)pthread_getsequence_np(pthread_self())] = 1;
+ seqmap[(int)pthread_getunique_np(pthread_self())] = 1;
InterlockedIncrement(&done);
return (void *) 0;
@@ -122,7 +122,7 @@ main()
if (NUMTHREADS/2 == i)
{
/* Include this main thread, which will be an implicit pthread_t */
- seqmap[(int)pthread_getsequence_np(pthread_self())] = 1;
+ seqmap[(int)pthread_getunique_np(pthread_self())] = 1;
}
assert(pthread_create(&t[i], &attr, func, NULL) == 0);
}