mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
19 lines
223 B
D
19 lines
223 B
D
// REQUIRED_ARGS: -O
|
|
|
|
void _d_critical_term()
|
|
{
|
|
for (auto p = head; p; p = p.next)
|
|
destroyMutex(p.i);
|
|
}
|
|
|
|
shared S* head;
|
|
|
|
struct S
|
|
{
|
|
S* next;
|
|
int i;
|
|
}
|
|
|
|
void destroyMutex(int i);
|
|
|
|
struct Mutex { int i; }
|