From 257b9e11ab6cf503d0b9582eb855ea0b50ec8877 Mon Sep 17 00:00:00 2001 From: hemagx Date: Tue, 1 Mar 2016 07:48:59 +0200 Subject: Interface thread.c --- src/test/test_spinlock.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/test/test_spinlock.c') diff --git a/src/test/test_spinlock.c b/src/test/test_spinlock.c index 6ffc4eafc..a19887f8d 100644 --- a/src/test/test_spinlock.c +++ b/src/test/test_spinlock.c @@ -78,13 +78,13 @@ int do_init(int argc, char **argv){ InitializeSpinLock(&lock); for(i =0; i < THRC; i++){ - t[i] = rathread_createEx( worker, NULL, 1024*512, RAT_PRIO_NORMAL); + t[i] = thread->createEx(worker, NULL, 1024*512, RAT_PRIO_NORMAL); } while(1){ if(InterlockedCompareExchange(&done_threads, THRC, THRC) == THRC) break; - rathread_yield(); + thread->yield(); } FinalizeSpinLock(&lock); -- cgit v1.2.3-60-g2f50