The library should be able to execute events (invoke a function) at a later time sequentially, randomly, and/or asynchronously. There can be a limit to how many events is executed at once or can be randomized.
Sample api.
#include <exotic/libeventq.h>
void count_to_million()
{
}
void change_background()
{
}
int main()
{
EventQ *event_queue;
init_eventq(&event_queue);
push_event(MAIN_THREAD, count_to_million);
push_event(GUI_THREAD, change_background);
destroy_eventq(event_queue);
}
Also, functions should be able to time out if it taking longer than the specified time to finish execution.
The library should be able to execute events (invoke a function) at a later time sequentially, randomly, and/or asynchronously. There can be a limit to how many events is executed at once or can be randomized.
Sample api.
Also, functions should be able to time out if it taking longer than the specified time to finish execution.