src/engine/thread_obj.cpp File Reference

#include <map>
#include <vector>
#include <string.h>
#include <malloc.h>
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <pthread.h>
#include "tools/assert.h"
#include "tools/log.h"
#include "thread_obj.h"

Include dependency graph for thread_obj.cpp:

Go to the source code of this file.

Functions

ThreadObjGetCurrentThread ()
 Get a pointer to the calling ThreadObj.

Variables

pthread_mutex_t mgmt_lock = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
std::map< pthread_t, ThreadObj * > thread_map


Function Documentation

ThreadObj* GetCurrentThread (  ) 

Get a pointer to the calling ThreadObj.

Returns:
a pointer to the current ThreadObj or NULL when called from the main thread.

Definition at line 93 of file thread_obj.cpp.


Variable Documentation

pthread_mutex_t mgmt_lock = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP

Definition at line 14 of file thread_obj.cpp.

std::map<pthread_t, ThreadObj*> thread_map

Definition at line 16 of file thread_obj.cpp.


Generated on Sun Oct 10 19:10:03 2010 for libldsw by  doxygen 1.5.8