Mutex: Difference between revisions

181 bytes added ,  14 years ago
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}}==
Anonymous user