Home

safe.hxx File Reference

#include <stddef.h>
#include "dcl_base.h"
#include "logical.h"
#include "static_types.hxx"

Classes

class  safe_floating_type< type >
 Defines a class with thread-local storage for and behavior of floating point data types. More...
class  safe_function_type< type >
 Defines a class with thread-local storage for and behavior of function pointers. More...
class  safe_integral_type< type >
 Defines a class with thread-local storage for and behavior of integral data types. More...
class  safe_object_pointer< type >
 Defines a class with thread-local storage for and behavior of object pointers. More...
class  safe_pointer_type< type >
 Defines a class with thread-local storage for and behavior of generic pointers. More...

Defines

#define MAX_ACTIVE_THREADS   1024
 Defines the maximum number of threads ACIS can utilize.

Functions

int max_thread_count ()
 Returns the maximum number of threads ACIS can utilize.
int thread_count ()
 Returns the number of currently active threads.
int thread_id ()
 Returns the current thread's (ACIS assigned) ID.
void thread_safe_region_begin ()
 Sets ACIS into thread-safe mode.
void thread_safe_region_end ()
 Sets ACIS into non-thread-safe mode (i.e.
logical thread_safety_enabled ()
 Returns TRUE if ACIS is running in thread-safe mode.

Detailed Description


Define Documentation

#define MAX_ACTIVE_THREADS   1024

Defines the maximum number of threads ACIS can utilize.


Function Documentation

int max_thread_count (  ) 

Returns the maximum number of threads ACIS can utilize.

int thread_count (  ) 

Returns the number of currently active threads.

int thread_id (  ) 

Returns the current thread's (ACIS assigned) ID.

void thread_safe_region_begin (  ) 

Sets ACIS into thread-safe mode.

void thread_safe_region_end (  ) 

Sets ACIS into non-thread-safe mode (i.e.

serial mode).

include <safe.hxx>

logical thread_safety_enabled (  ) 

Returns TRUE if ACIS is running in thread-safe mode.