diff options
author | Lionel Ulmer | 2002-04-24 19:35:49 +0000 |
---|---|---|
committer | Lionel Ulmer | 2002-04-24 19:35:49 +0000 |
commit | 57f40560156da067b1117838bc78e0b7ce58aeea (patch) | |
tree | 619cee24c0cbc18e444de8dec2a6a23623954e8a /x11.cpp | |
parent | ca4262ec0cfad67af104dd8246c9a9a5d5b93c63 (diff) | |
download | scummvm-rg350-57f40560156da067b1117838bc78e0b7ce58aeea.tar.gz scummvm-rg350-57f40560156da067b1117838bc78e0b7ce58aeea.tar.bz2 scummvm-rg350-57f40560156da067b1117838bc78e0b7ce58aeea.zip |
Added the create_thread function.
svn-id: r4074
Diffstat (limited to 'x11.cpp')
-rw-r--r-- | x11.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -632,7 +632,11 @@ void OSystem_X11::set_shake_pos(int shake_pos) { } void *OSystem_X11::create_thread(ThreadProc *proc, void *param) { - error("Create_thread Should never be called "); + pthread_t *thread = (pthread_t *) malloc(sizeof(pthread_t)); + if (pthread_create(thread, NULL, (void * (*)(void *)) proc, param)) + return NULL; + else + return thread; } uint32 OSystem_X11::property(int param, uint32 value) { |