1)
Код: Выделить всё
void example()
{
lock (mutex)
{
//...
}
return myData;
}
Код: Выделить всё
void example()
{
lock (mutex)
{
//...
return myData;
}
}
Подробнее здесь: https://stackoverflow.com/questions/266 ... ide-a-lock
Код: Выделить всё
void example()
{
lock (mutex)
{
//...
}
return myData;
}
Код: Выделить всё
void example()
{
lock (mutex)
{
//...
return myData;
}
}