aboutsummaryrefslogtreecommitdiff
path: root/x11.cpp
diff options
context:
space:
mode:
authorLionel Ulmer2002-04-24 19:35:49 +0000
committerLionel Ulmer2002-04-24 19:35:49 +0000
commit57f40560156da067b1117838bc78e0b7ce58aeea (patch)
tree619cee24c0cbc18e444de8dec2a6a23623954e8a /x11.cpp
parentca4262ec0cfad67af104dd8246c9a9a5d5b93c63 (diff)
downloadscummvm-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.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/x11.cpp b/x11.cpp
index 0da48c4ab5..a537d69df7 100644
--- a/x11.cpp
+++ b/x11.cpp
@@ -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) {