C forcing function execution in thread from other thread
I'm using 2 different asynchronous event libraries. One in the main thread and one in the created thread. I want to call a function from the main thread in the created thread, but that fails because the asynchronous event library in the created thread never returns. Unfortunately I have to use this other asynchronous event library because it is part of the library that I'm using to achieve that functionality.
My code is (very simplified) as follows:
voic bla_x()
{
//this function is...