I have some code like this:
public T Dequeue()
{
_lockQ.EnterWriteLock();
try
{
return _queue.Dequeue();
}
finally
{
_lockQ.ExitWriteLock();
}
}
for some reason, either due to a not functional support of ReaderWriterLockSlim or Try/Finally, I get a recursive EnterWriteLock on the mainthread, which is not possible (unless one of the two conditions aforementioned are true).
do you have any clue about this?