X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2Fmoof%2Fthread.cc;fp=src%2Fmoof%2Fthread.cc;h=03c04f7b8ab70c53dd074065fd6a1a483970068a;hp=c1e501c6a378ea22774283c341c2ee43269b9bd9;hb=574af38ed616d1adfa5e6ce35f67cda1f707f89d;hpb=6c9943707d4f33035830eba0587a61a34eaecbc2 diff --git a/src/moof/thread.cc b/src/moof/thread.cc index c1e501c..03c04f7 100644 --- a/src/moof/thread.cc +++ b/src/moof/thread.cc @@ -1,13 +1,11 @@ -/*] 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" @@ -20,7 +18,6 @@ thread::thread() : thread_(0), runloop_(new moof::runloop) {} - thread thread::detach(const function& function) { thread* thread = new moof::thread; @@ -38,7 +35,6 @@ thread thread::detach(timer& timer) return *thread; } - void thread::spawn(thread* thread) { thread->thread_ = SDL_CreateThread(&thread::run, (void*)thread); @@ -52,7 +48,6 @@ int thread::run(void* arg) return code; } - void thread::kill() { if (thread_) @@ -62,7 +57,6 @@ void thread::kill() } } - moof::runloop& thread::runloop() const { return *runloop_;