[M3commit] CVS Update: cm3

Jay Krell jkrell at elego.de
Sun Dec 6 13:29:42 CET 2009


CVSROOT:	/usr/cvs
Changes by:	jkrell at birch.	09/12/06 13:29:42

Modified files:
	cm3/m3-libs/m3core/src/thread/PTHREAD/: ThreadPThreadC.c 

Log message:
	a little more aggressive handling of EAGAIN and ENOMEM
	
	if pthread_create/pthread_mutex_init/pthread_cond_init fail with
	either, try again right away; if they fail again, sleep(1)
	and try again; this logic could be put into the Modula-3
	as it is portable and such
	
	(Posix doesn't allow pthread_create to return ENOMEM
	though it seems reasonable; also a smaller sleep might
	be reasonable, and so would sleep/retrying even more,
	it's a difficult to resolve philosophical/engineering dilemna..)




More information about the M3commit mailing list