On Tue, Jan 20, 2009 at 11:04 AM, Lorenzo Fiorini <lorenzo.fior...@gmail.com> wrote:
> I could protect the dbfopen with a mutex. Is it safe to create a > static hash that holds the mutexes in the main thread and access it > using a function? Sorry if I continue to reply to myself but with a mutex like: in the main thread ... hSMutex[ "dbxopen" ] := hb_MutexCreate() ... function getappmutex() return hSMutex ... in the "child" threads: hb_MutexLock( GETAPPMUTEX()[ "dbxopen" ] ) ... hb_MutexUnLock( GETAPPMUTEX()[ "dbxopen" ] ) ... it seems to work as expected. best regards, Lorenzo _______________________________________________ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour