Sun, 25 Nov 2007 09:11:58 +0000
Opher asks in his blog, Is there a non-event event ? on absence as a pattern.
All “non-event” examples that the*event processing*community has offered, to date, have been based on the premise that an event is created when something does not happen based on time, schedule or a timer - and many seem to want to refer to this as a*”non event.”
Opher is now calling this situation an “absent event.”
In my opinion, the correct term should be a “time-based event” because the event is triggered by a timer or similar time-based object; the*term “non-event” should be dropped from the event processing glossary.
I have a bunch of hosts which I need to run a common script. I need a sleep timee which will delay the execution based on the hostname. Usually the hostname of the servers are host01, host02 .. host16 with which I cam up with this -
sleeptimer=$(( $(hostname -s|tr -cd... (3 Replies)
My script is nearly complete, there is just one last piece that needs to be added in.
I need to check for the time, and if it is lets say for example. Sunday at 5:00AM, my script cannot run.
I would assume it would be something like this, parden the terrible pseudocode
... (7 Replies)
I am facing a problem in recv() system call i.e.. in my project i have to implement timer for sending (data) and resending purpose when there is no acknowledgement.
is there any way that recv() sys call has its own timer i.e., for ex: recv() has to wait for 10 secs.
if any one knows... (2 Replies)
Discussion started by: Rohil
LEARN ABOUT DEBIAN
SDL_SetEventFilter(3) SDL API Reference SDL_SetEventFilter(3)NAME
SDL_SetEventFilter - Sets up a filter to process all events before they are posted to the event queue.
void SDL_SetEventFilter(SDL_EventFilter filter);
This function sets up a filter to process all events before they are posted to the event queue. This is a very powerful and flexible fea-
ture. The filter is prototyped as:
typedef int (*SDL_EventFilter)(const SDL_Event *event);
If the filter returns 1, then the event will be added to the internal queue. If it returns 0, then the event will be dropped from the
queue. This allows selective filtering of dynamically.
There is one caveat when dealing with the SDL_QUITEVENT event type. The event filter is only called when the window manager desires to
close the application window. If the event filter returns 1, then the window will be closed, otherwise the window will remain open if pos-
sible. If the quit event is generated by an interrupt signal, it will bypass the internal queue and be delivered to the application at the
next event poll.
Events pushed onto the queue with SDL_PushEvent or SDL_PeepEvents do not get passed through the event filter.
Be Careful! The event filter function may run in a different thread so be careful what you do within it.
SDL_Event, SDL_GetEventFilter, SDL_PushEvent
SDL Tue 11 Sep 2001, 22:59 SDL_SetEventFilter(3)