I tried looking this up but having a hard time cuz all i get are ppl using sleep()
is there a function that would be able to put a thread to sleep and only get waken up when the main process wants teh thread to do something??? i thought there was sumthing like that when using multithreads like having a thread be in wait mode i guess and waits till the main threads gives it new data to be processed
im trying to avoid an infinite loop checking a buffer waiting for the main thread to fill up