src/thread_none.cpp
changeset 10175 1119f6640ee6
child 10861 7954a0043e05
equal deleted inserted replaced
10174:76f8d0eb10b7 10175:1119f6640ee6
       
     1 /* $Id$ */
       
     2 
       
     3 /** @file thread_none.cpp No-Threads-Available implementation of Threads */
       
     4 
       
     5 #include "stdafx.h"
       
     6 #include "thread.h"
       
     7 #include "fiber.hpp"
       
     8 
       
     9 /* static */ ThreadObject *ThreadObject::New(OTTDThreadFunc proc, void *param)
       
    10 {
       
    11 	return NULL;
       
    12 }
       
    13 
       
    14 /* static */ ThreadObject *ThreadObject::AttachCurrent()
       
    15 {
       
    16 	return NULL;
       
    17 }
       
    18 
       
    19 /* static */ uint ThreadObject::CurrentId()
       
    20 {
       
    21 	return -1;
       
    22 }
       
    23 
       
    24 /* static */ ThreadSemaphore *ThreadSemaphore::New()
       
    25 {
       
    26 	return NULL;
       
    27 }
       
    28 
       
    29 /* static */ Fiber *Fiber::New(FiberFunc proc, void *param)
       
    30 {
       
    31 	return NULL;
       
    32 }
       
    33 
       
    34 /* static */ Fiber *Fiber::AttachCurrent(void *param)
       
    35 {
       
    36 	return NULL;
       
    37 }
       
    38 
       
    39 /* static */ void *Fiber::GetCurrentFiberData()
       
    40 {
       
    41 	return NULL;
       
    42 }