polling works
toward callback
use objects rather than ints for references
works! using pthread_cond_wait
timeout
updated example to match readme