Back to index

im-sdk  12.3.91
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions
IMScheduler_MTPC Class Reference

#include <IMScheduler_MTPC.hh>

Inheritance diagram for IMScheduler_MTPC:
Inheritance graph
[legend]
Collaboration diagram for IMScheduler_MTPC:
Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual int start (IMAccept *pima, IMProtocol *pimp, IMState *pims)
virtual int stop ()

Static Public Member Functions

static IMScheduler_MTPCconstruct ()
static IMSchedulerget_instance ()

Protected Member Functions

void register_singleton ()

Private Member Functions

 IMScheduler_MTPC ()

Detailed Description

Definition at line 6 of file IMScheduler_MTPC.hh.


Constructor & Destructor Documentation

Definition at line 74 of file IMScheduler_MTPC.cpp.

    : IMScheduler()
{
}

Here is the caller graph for this function:


Member Function Documentation

Definition at line 80 of file IMScheduler_MTPC.cpp.

{
    IMScheduler_MTPC *pimsch = new IMScheduler_MTPC();
    pimsch->register_singleton();

    return pimsch;
}

Here is the call graph for this function:

Here is the caller graph for this function:

static IMScheduler* IMScheduler::get_instance ( ) [inline, static, inherited]

Definition at line 20 of file IMScheduler.hh.

Here is the caller graph for this function:

void IMScheduler::register_singleton ( ) [inline, protected, inherited]

Definition at line 17 of file IMScheduler.hh.

    { pimscheduler = this; }

Here is the caller graph for this function:

int IMScheduler_MTPC::start ( IMAccept pima,
IMProtocol pimp,
IMState pims 
) [virtual]

Implements IMScheduler.

Definition at line 44 of file IMScheduler_MTPC.cpp.

{
    pthread_t th;
    pthread_attr_t attr;

    pthread_attr_init(&attr);
    pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);


    IMScheduler_thread_arg *pima;
    pima = (IMScheduler_thread_arg*) malloc(sizeof(IMScheduler_thread_arg));
    if (!pima) return 0;
    pima->pimp = pimp;
    pima->pimstate = pims;
    pthread_create(&th, &attr, IMScheduler_MTPC_thread_entry, pima);

    return 1;
}

Here is the call graph for this function:

int IMScheduler_MTPC::stop ( ) [virtual]

Implements IMScheduler.

Definition at line 69 of file IMScheduler_MTPC.cpp.

{
    return 1;
}

The documentation for this class was generated from the following files: