apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marc M. Adkins" <Softw...@Doorways.org>
Subject recursive apr_thread_rwlock_wrlock?
Date Sun, 28 Mar 2004 21:57:53 GMT
Is it possible that apr_thread_rwlock_wrlock will allow recursive behavior on 
Windows but not on Linux?  By this I mean that a specific thread will request 
a write lock and then request the same write lock again, intending to release 
it twice on the way out:

	void XXX () {
	  wrlock(lck);
	  YYY();
	  unlock(lck);
	}

	void YYY () {
	  wrlock(lck);
	  unlock(lck);
	}

Seems like I have code I developed under Windows that assumes that this works, 
but it's not working under Linux.  Is there an official behavior?

mma


Mime
View raw message