src/thread_none.cpp
author smatz
Sun, 15 Jun 2008 13:52:51 +0000
changeset 10966 3de9939c8a91
parent 10866 242436c016b8
permissions -rw-r--r--
(svn r13520) -Fix (r13375): pointer has to be valid before it can be loaded to (SLE_STR)
/* $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;
}