m_condition.mutex cannot be used in shared method ?

via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Oct 21 02:40:14 PDT 2014


On Monday, 20 October 2014 at 17:37:22 UTC, Sean Kelly wrote:
> With all the recent work on the GC, we really really need to
> start tracking which thread owns a given non-shared object so it
> can be finalized properly.  This may mean having the process of
> casting away shared make the executing thread the new owner of
> the object.

But this change of ownership is usually only temporary:

     with(cast(BaseType) sharedVar) {
         // ...
     }


More information about the Digitalmars-d-learn mailing list