view tests/mini/sync2.d @ 1583:593f99fddd2f

basename => dirname, thanks Hxal
author Moritz Warning <moritzwarning@web.de>
date Tue, 22 Sep 2009 20:26:50 +0200
parents 15eb8f5f2441
children
line wrap: on
line source

module tangotests.sync2;

class Lock
{
}

const Lock lock;

static this()
{
    lock = new Lock;
}

void main()
{
    size_t id;
    synchronized(lock) id = 2;
}