I have a secondary thread running some code in a loop and i want it to send a callback to the main thread every N loop cycles.
I pass the callback function as a pointer <