how can i achieve this behaviour?



lockhere(); // this call should not block the first thread, but any that follows. this can be achieved using a simple Lock.
if (iAmTheFirstThread)
{
...