Anonymous user
Mutex: Difference between revisions
no edit summary
(added Go) |
No edit summary |
||
Line 104:
{{works with|Win32}}
See C example
=={{header|D}}==
<lang d>
class Synced
{
public:
synchronized int func (int input)
{
num += input;
return num;
}
private:
static num = 0;
}
</lang>
=={{header|E}}==
|