mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-16 00:12:51 +00:00
43 lines
676 B
C++
43 lines
676 B
C++
/* $Id$ */
|
|
|
|
/** @file thread_none.cpp No-Threads-Available implementation of Threads */
|
|
|
|
#include "stdafx.h"
|
|
#include "thread.h"
|
|
#include "fiber.hpp"
|
|
|
|
/* static */ ThreadObject *ThreadObject::New(OTTDThreadFunc proc, void *param)
|
|
{
|
|
return NULL;
|
|
}
|
|
|
|
/* static */ ThreadObject *ThreadObject::AttachCurrent()
|
|
{
|
|
return NULL;
|
|
}
|
|
|
|
/* static */ uint ThreadObject::CurrentId()
|
|
{
|
|
return -1;
|
|
}
|
|
|
|
/* static */ ThreadSemaphore *ThreadSemaphore::New()
|
|
{
|
|
return NULL;
|
|
}
|
|
|
|
/* static */ Fiber *Fiber::New(FiberFunc proc, void *param)
|
|
{
|
|
return NULL;
|
|
}
|
|
|
|
/* static */ Fiber *Fiber::AttachCurrent(void *param)
|
|
{
|
|
return NULL;
|
|
}
|
|
|
|
/* static */ void *Fiber::GetCurrentFiberData()
|
|
{
|
|
return NULL;
|
|
}
|