Structural deformable models
Functions | Variables
vuThread.cpp File Reference
#include "vuThread.h"
#include <stdlib.h>
#include <iostream>
#include <errno.h>
#include <string.h>
#include <fstream>
#include <sys/time.h>
#include <pthread.h>
#include <unistd.h>
Include dependency graph for vuThread.cpp:

Go to the source code of this file.

Functions

vuMutexgetLogMut ()
 
void * _kickoff (void *ptr)
 

Variables

vuMutex logmut
 

Function Documentation

void* _kickoff ( void *  ptr)

Definition at line 20 of file vuThread.cpp.

References NULL, vuThread::run(), vuThread::stopThread(), and vuMutex::unlock().

Referenced by vuThread::startThread(), vuMutex::unlock(), and vuThread::~vuThread().

21 {
22  vuThread *th = (vuThread*)ptr;
23  int whatsup = th->m_Whatsup;
24  void* data = th->m_AdditionalData;
25  th->m_WhatsupMutex.unlock();
26 
27  th->run(whatsup, data);
28 
29  th->stopThread();
30  return NULL;
31 }
#define NULL
Definition: simpletypes.h:9
void stopThread()
Definition: vuThread.cpp:107
virtual void run(int whatsup, void *data)=0
void unlock()
Definition: vuThread.cpp:148
vuMutex& getLogMut ( )

Definition at line 12 of file vuThread.cpp.

References logmut.

12 {return logmut;}
vuMutex logmut
Definition: vuThread.cpp:10

Variable Documentation

vuMutex logmut

Definition at line 10 of file vuThread.cpp.

Referenced by getLogMut().