DMD 1.022 and 2.005 releases - what's wrong with threading?

Sean Kelly sean at f4.ca
Sun Oct 7 15:48:36 PDT 2007


David Brown wrote:
> 
> As I've said before, Phobos should contains a small set of easy to use
> primitives that are efficiently implemented on the underlying OS.  This is
> not currently the case.

Tango offers the following:

Mutex
Barrier
Condition
Semaphore
ReadWriteMutex

In addition, Mutex and ReadWriteMutex work with the 'synchronized' 
statement.

Assuming the Tango and Phobos runtime libraries somehow merge for D 2.0, 
  these would likely either be included or would at least be compatible 
with Phobos.

> Aside from that, it would be useful to have a set of higher-level
> synchronization operations, such as bounded and unbounded buffers,
> implemented on top of this that are also part of a common library.

More is planned for Tango and largely waiting for the time to work on 
it.  Demand is also a factor.  If there's a pressing need for something, 
it's more likely to work its way to the top of my list.

I'd actually created a thread pool of sorts and then stalled when I 
started thinking about how to perform object cleanup.  I expect to pick 
it back up again soon though.


Sean



More information about the Digitalmars-d mailing list