Back to index

im-sdk  12.3.91
Public Member Functions | Private Attributes
IMThread Class Reference

#include <IMThread.hh>

Collaboration diagram for IMThread:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 IMThread (ThreadStartProc start_routine, void *arg)
 IMThread (void *stack_base, size_t stack_size, ThreadStartProc start_routine, void *arg, long flags)
 ~IMThread ()
int Manage ()
int Unmanage ()
int Join (IMThread *wait_for=0, IMThread *departed=0, void **status=0)
int Join (IMThread *departed=0, void **status=0)
int Join (void **status=0)
int Suspend ()
int Continue ()

Private Attributes

IMThreadPp

Detailed Description

Definition at line 50 of file IMThread.hh.


Constructor & Destructor Documentation

IMThread::IMThread ( ThreadStartProc  start_routine,
void *  arg 
)

Definition at line 55 of file IMThreadP.cpp.

                                                           {
  p = new IMThreadP;

  p->stack_base = NULL;
  p->stack_size = 0;
  p->start_routine = start_routine;
  p->arg = arg;
  p->flags = 0;
  Manage();
}

Here is the call graph for this function:

IMThread::IMThread ( void *  stack_base,
size_t  stack_size,
ThreadStartProc  start_routine,
void *  arg,
long  flags 
)

Definition at line 66 of file IMThreadP.cpp.

                                        {

  p = new IMThreadP;

  p->stack_base = stack_base;

  p->stack_size = stack_size;
  p->start_routine = start_routine;
  p->arg = arg;
  p->flags = flags;
  Manage();
}

Here is the call graph for this function:

Definition at line 81 of file IMThreadP.cpp.

                    {
  delete p;
  // thr_exit((void*)&status);
}

Member Function Documentation

Definition at line 122 of file IMThreadP.cpp.

                   {
  return 0;
}
int IMThread::Join ( IMThread wait_for = 0,
IMThread departed = 0,
void **  status = 0 
)

Definition at line 101 of file IMThreadP.cpp.

                                                                     {
  return pthread_join(wait_for->p->tid, status);
}

Here is the caller graph for this function:

int IMThread::Join ( IMThread departed = 0,
void **  status = 0 
)

Definition at line 106 of file IMThreadP.cpp.

                                                {
  return Join(this, departed, status);
}

Here is the call graph for this function:

int IMThread::Join ( void **  status = 0)

Definition at line 111 of file IMThreadP.cpp.

                            {
  return Join(this, (IMThread *)0, (void**)status);
}

Here is the call graph for this function:

Definition at line 87 of file IMThreadP.cpp.

                 {
  int ret = pthread_create(&p->tid, NULL,
                        p->start_routine, p->arg);
  return ret;
}

Here is the caller graph for this function:

Definition at line 117 of file IMThreadP.cpp.

                  {
  return 0;
}

Definition at line 94 of file IMThreadP.cpp.

                   {
  return 0;
}

Member Data Documentation

IMThreadP* IMThread::p [private]

Definition at line 66 of file IMThread.hh.


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