okay, so waiting and signalling is aLMOST there - just getting a segfault when I access the condVars array (that holds the convars of each train by ID. Figure that shit out, and you'll be done :)