[plt-dev] thread-specifics [PATCH]

From: Dimitris Vyzovitis (vyzo at media.mit.edu)
Date: Tue Mar 3 14:39:39 EST 2009

On Tue, 3 Mar 2009, Matthew Flatt wrote:

> Is there a reason this needs to be built in, instead of implemented as
> a weak hash table?

There is no rendezvous needed to access the specific, because it is 
attached to the thread (a public readonly cell), simplifying things with 
barriers, tagging, etc.

The thread can set a weak table in its specific if for key/value access.

-- vyzo

Posted on the dev mailing list.