summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorhemagx <hemagx2@gmail.com>2016-03-01 07:48:59 +0200
committerHaru <haru@dotalux.com>2016-07-12 20:58:41 +0200
commit257b9e11ab6cf503d0b9582eb855ea0b50ec8877 (patch)
tree9110aa9f8647ef7a13702d05fc06f11ea0ca8830 /src/test
parentd0355d1df812f75e22f2d0538a1850d4e1274078 (diff)
downloadhercules-257b9e11ab6cf503d0b9582eb855ea0b50ec8877.tar.gz
hercules-257b9e11ab6cf503d0b9582eb855ea0b50ec8877.tar.bz2
hercules-257b9e11ab6cf503d0b9582eb855ea0b50ec8877.tar.xz
hercules-257b9e11ab6cf503d0b9582eb855ea0b50ec8877.zip
Interface thread.c
Diffstat (limited to 'src/test')
-rw-r--r--src/test/test_spinlock.c4
1 files changed, 2 insertions, 2 deletions
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);