F
F
farkhatovich2017-09-09 19:29:40
C++ / C#
farkhatovich, 2017-09-09 19:29:40

What construction does lock expand into?

What construction does lock expand into?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim, 2017-09-09
@farkhatovich

System.Threading.Monitor.Enter(obj);
try
{
    //action
}
finally
{
    System.Threading.Monitor.Exit(obj);
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question