
"Peter Dimov" <pdimov@mmltd.net> writes:
Roland Schwarz wrote:
Peter Dimov wrote:
There is also the option of implementing pthread_rwlock_* on Windows, keeping the higher layer platform-independent. This obviously requires a higher layer that agrees with the pthread_rwlock_* interface.
Sorry, but I am not sure If I understand what you mean. Do you mean the windows version should be implemented on top of pthread?
I meant that one way to handle the differences between Windows and everything else is to implement the C++ layer on top of pthread_* calls, then implement the necessary pthread_* calls on Windows. Something like Boost.Pthread-Win32, but possibly less complete.
IMO, that is one abstraction layer too many, and gives us less flexibility in how to implement things on Windows. Anthony -- Anthony Williams Software Developer Just Software Solutions Ltd http://www.justsoftwaresolutions.co.uk