##- # Author: Brian Tiffin # Dedicated to the public domain # # Date: October 2016 # Modified: 2016-10-14/14:53-0400 ##+ # # wait.icn, demonstrate thread and condvar wait # procedure main() write("waiting ", gettimeofday().usec) th := thread(every 1 to 100000) wait(th) write("no longer waiting ", gettimeofday().usec) end