diff options
author | truebrain <truebrain@openttd.org> | 2008-06-08 12:06:27 +0000 |
---|---|---|
committer | truebrain <truebrain@openttd.org> | 2008-06-08 12:06:27 +0000 |
commit | e767b4f7784ba8e0f52cb920a4b171ef9b61e67f (patch) | |
tree | 824116881f6d5514cdaa069f10eddac84da3b04a /src/fiber_thread.cpp | |
parent | 4657ae97fcd9487adb882f8634ad5cfe589d034c (diff) | |
download | openttd-e767b4f7784ba8e0f52cb920a4b171ef9b61e67f.tar.xz |
(svn r13412) -Add: OTTDThreadTerminateFunc, for all thread systems, which is called when a thread is terminated. Now GenWorld- and SaveLoad-thread cleanup theirselves correctly, while Fibers don't (as that causes access-violations)
Diffstat (limited to 'src/fiber_thread.cpp')
-rw-r--r-- | src/fiber_thread.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fiber_thread.cpp b/src/fiber_thread.cpp index 5155b5519..fb4e8debf 100644 --- a/src/fiber_thread.cpp +++ b/src/fiber_thread.cpp @@ -32,7 +32,7 @@ public: { this->m_sem = ThreadSemaphore::New(); /* Create a thread and start stFiberProc */ - this->m_thread = ThreadObject::New(&stFiberProc, this); + this->m_thread = ThreadObject::New(&stFiberProc, this, NULL); } /** |