[Openmcl-devel] Thread-safe hash table

Paul Krueger plkrueger at comcast.net
Wed Dec 4 11:04:13 PST 2013


I need the equivalent of a static weak key hash-table; i.e.  thread safe with weak key references. As near as I can tell I probably have to use a lock to control all accesses, but I'm wondering if even that is adequate. Will everything work correctly if I try to access and/or update the hash table from one thread while GC is occurring in another?

Is there a better way to think about and implement this?


More information about the Openmcl-devel mailing list