[suite à cette discussion]
Merci pour ces infos utiles, j'ai utilisé naïvement "semaphore.h" pendant plusieurs heures étant donné que son utilisation ne génère aucun warning ne comprenant pas d'où venaient les problèmes.
Toutefois, ton implémentation m'a également posé un petit problème que j'ai vite pu régler, au niveau de l'appel "mach_task_self()" :
http://groups.google.com/a/webmproje...93a61821?pli=1When compiling on OS X, there is a warning for undefined function
mach_task_self().
This functions is defined in mach_init.h. If it include mach/mach.h
instead of <mach/mach_task.h> is fix this issue (or at east, include
<mach/mach_init.h>).
For the record, mach_task_self is defined as a macro to a global var
instead of a function call when the proper header is include. So even
if this function is compatible with the implicit declaration, it may
be interesting to fix this.

 

 
		
		 
         
			
			



 Multithreading sous mac
 Multithreading sous mac
				 Répondre avec citation
  Répondre avec citation


 
   
 
 Envoyé par LastSpear
 Envoyé par LastSpear
					

 
			 
  
Partager