Is synchronized(...){...} doomed to never be nothrow/@nogc?
ZombineDev via Digitalmars-d
digitalmars-d at puremagic.com
Wed May 11 00:22:54 PDT 2016
On Wednesday, 11 May 2016 at 07:01:43 UTC, Jacob Carlborg wrote:
> On 2016-05-11 03:08, Walter Bright wrote:
>> [...]
>
> There's code in DWT and Tango as well that throws a
> SyncException exception when failing to acquire a lock.
>
> [...]
These cases all look like they want to use tryLock instead
(http://dlang.org/phobos/core_sync_mutex#.Mutex.tryLock).
More information about the Digitalmars-d
mailing list