Bull DPX/20 Podręcznik Użytkownika Strona 379

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 424
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 378
Event Management Framework Reference 5-11
someProcessEvent Method
Purpose
Processes one event.
IDL Syntax
void someProcessEvent (
in unsigned long mask);
Description
Processes one event. This call is non-blocking. If there are no events to process it returns
immediately. The mask specifies which events to process. The mask is formed by OR’ing
the bit constants specified in the eventmsk.h file.
Parameters
receiver A pointer to an object of class SOMEEMan.
ev A pointer to the Environment structure for the calling method.
mask A bit mask indicating the types of events to look for and process.
Example
#include <eman.h>
main()
{
Environment *testEnv = somGetGlobalEnvironment();
SOMEEMan *some_gEMan = SOMEEManNew();
/* Do some registrations */
...
while (1) {
_someProcessEvent(some_gEMan, testEnv,
EMProcessTimerEvent |
EMProcessSinkEvent |
EMProcessClientEvent );
/*** Do other main loop work, if needed. ***/
}
} /* end of main */
Original Class
SOMEEMan
Related Information
Methods: someProcessEvents, someRegister, someRegisterEv, someRegisterProc
Przeglądanie stron 378
1 2 ... 374 375 376 377 378 379 380 381 382 383 384 ... 423 424

Komentarze do niniejszej Instrukcji

Brak uwag