From e2f7e5c04fe8ac17483b009943e5a7c121c06fdf Mon Sep 17 00:00:00 2001 From: rpj Date: Sat, 26 Mar 2011 07:54:10 +0000 Subject: renamed function --- tests/sequence1.c | 4 ++-- 1 file 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); } -- cgit v1.2.3