Removed Mutex liberation on CanSend. Too much race condition to avoid. Cannot be deeply tested.
authoretisserant
Thu, 12 Apr 2007 16:36:31 +0200
changeset 155 746b49869cbc
parent 154 1b3165f2d17d
child 156 515d11cb496e
Removed Mutex liberation on CanSend. Too much race condition to avoid. Cannot be deeply tested.
drivers/unix/unix.c
--- a/drivers/unix/unix.c	Thu Apr 12 16:20:22 2007 +0200
+++ b/drivers/unix/unix.c	Thu Apr 12 16:36:31 2007 +0200
@@ -121,9 +121,9 @@
 {
 	if(port){
 		UNS8 res;
-	        LeaveMutex();
+	        //LeaveMutex();
 		res = DLL_CALL(canSend)(((CANPort*)port)->fd, m);
-		EnterMutex();
+		//EnterMutex();
 		return res;
 	}               
 	return -1;