-/*] Copyright (c) 2009-2010, Charles McGarvey [**************************
+/*] Copyright (c) 2009-2011, Charles McGarvey [*****************************
**] All rights reserved.
*
-* vi:ts=4 sw=4 tw=75
-*
* Distributable under the terms and conditions of the 2-clause BSD license;
* see the file COPYING for a complete text of the license.
*
-**************************************************************************/
+*****************************************************************************/
#include "runloop.hh"
#include "thread.hh"
thread_(0),
runloop_(new moof::runloop) {}
-
thread thread::detach(const function& function)
{
thread* thread = new moof::thread;
return *thread;
}
-
void thread::spawn(thread* thread)
{
thread->thread_ = SDL_CreateThread(&thread::run, (void*)thread);
return code;
}
-
void thread::kill()
{
if (thread_)
}
}
-
moof::runloop& thread::runloop() const
{
return *runloop_;