__cdecl for barrier and execIteration in PyEnv