#include void foo(){ void koo(){ int o = 0; o++; } $proc p = $spawn koo(); $wait p; } void main(){ $atomic{ foo(); } }