Back to index

im-sdk  12.3.91
Classes | Functions
IMScheduler_MTPC.cpp File Reference
#include <config.h>
#include <stdio.h>
#include <stdlib.h>
#include "IMScheduler_MTPC.hh"
#include "IMProtocol.hh"
#include "IMState.hh"

Go to the source code of this file.

Classes

struct  IMScheduler_thread_arg

Functions

void * IMScheduler_MTPC_thread_entry (void *priv)

Class Documentation

struct IMScheduler_thread_arg

Definition at line 11 of file IMScheduler_MTPC.cpp.

Collaboration diagram for IMScheduler_thread_arg:
Class Members
IMProtocol * pimp
IMState * pimstate

Function Documentation

void * IMScheduler_MTPC_thread_entry ( void *  priv)

Definition at line 17 of file IMScheduler_MTPC.cpp.

{
    IMScheduler_thread_arg *pa = (IMScheduler_thread_arg *) priv;
    IMProtocol *pimp = pa->pimp;
    IMState *pims = pa->pimstate;

    free(pa);

#ifdef HAVE_SIGNAL
    // block signal handling
    sigset_t sset;
    sigfillset(&sset);
    pthread_sigmask(SIG_BLOCK, &sset, NULL);
#endif

    for(;;) {
       if (!pimp->receive_and_dispatch(pims))
           break;
    }

    return NULL;
}

Here is the call graph for this function:

Here is the caller graph for this function: