From: Nikita Andreev (lestat_at_kemsu.ru)
Date: Thu Feb 11 2010 - 19:38:24 PST
Dorian, > a) There is no user control over the "affinity" of a lock, right? It > seems to me that e.g. in your Berkeley implementation, all locks are > managed on thread 0. It appears to me that "localized locks" with > affinity to some thread would be nice to have in the standard ... Paul, correct if I'm wrong but in UPC you can use upc_global_lock_alloc. It returns a pointer to the lock object in the calling thread. The pointer itself can be declared in the thread's private space. Nikita