fixed wrong pthread initialisation
authorlbessard
Wed, 08 Apr 2009 15:16:45 +0200
changeset 333 e90aebdd2af1
parent 332 4f0e1d66bba5
child 334 b4131e5d10a4
fixed wrong pthread initialisation
targets/Linux/plc_Linux_main.c
--- a/targets/Linux/plc_Linux_main.c	Sat Apr 04 10:43:29 2009 +0200
+++ b/targets/Linux/plc_Linux_main.c	Wed Apr 08 15:16:45 2009 +0200
@@ -84,8 +84,8 @@
     sigev.sigev_notify_attributes = NULL;
     sigev.sigev_notify_function = PLC_timer_notify;
 
-    pthread_mutex_init(&debug_wait_mutex);
-    pthread_mutex_init(&python_wait_mutex);
+    pthread_mutex_init(&debug_wait_mutex, NULL);
+    pthread_mutex_init(&python_wait_mutex, NULL);
 
     pthread_mutex_lock(&debug_wait_mutex);
     pthread_mutex_lock(&python_wait_mutex);