#include "..\ScripterExport.h"
#include "..\..\WindowsDefines.h"
#include "..\..\maxtypes.h"
#include "..\..\maxapi.h"
#include "..\protocols\thread_locals.inl"
Go to the source code of this file.
Classes |
|
struct | MAXScript_TLS |
Defines |
|
#define | def_thread_local(type, lcl, type_collectable, init_val) type lcl |
#define | thread_local(x) (((MAXScript_TLS*)TlsGetValue(thread_locals_index))->x) |
#define | MAXScript_time() (thread_local(use_time_context) ? thread_local(current_time) : GetCOREInterface()->GetTime()) |
Functions |
|
void | needs_redraw_set () |
void | needs_complete_redraw_set () |
void | needs_redraw_clear () |
void | alloc_thread_locals () |
ScripterExport void | init_thread_locals () |
void | free_thread_locals () |
void | copy_thread_locals (MAXScript_TLS *source, MAXScript_TLS *target) |
Variables |
|
ScripterExport int | thread_locals_index |
int | thread_id_index |
MAXScript_TLS * | MAXScript_TLS_list |
#define def_thread_local | ( | type, | |
lcl, | |||
type_collectable, | |||
init_val | |||
) | type lcl |
Definition at line 37 of file MAXScript_TLS.h.
#define thread_local | ( | x | ) | (((MAXScript_TLS*)TlsGetValue(thread_locals_index))->x) |
Definition at line 42 of file MAXScript_TLS.h.
#define MAXScript_time | ( | ) | (thread_local(use_time_context) ? thread_local(current_time) : GetCOREInterface()->GetTime()) |
Definition at line 66 of file MAXScript_TLS.h.
void needs_redraw_set | ( | ) | [inline] |
Definition at line 51 of file MAXScript_TLS.h.
{ if (thread_local(redraw_mode) && thread_local(needs_redraw) == 0) thread_local(needs_redraw) = 1; }
void needs_complete_redraw_set | ( | ) | [inline] |
Definition at line 56 of file MAXScript_TLS.h.
{ if thread_local(redraw_mode) thread_local(needs_redraw) = 2; }
void needs_redraw_clear | ( | ) | [inline] |
Definition at line 61 of file MAXScript_TLS.h.
{ thread_local(needs_redraw) = 0; }
void alloc_thread_locals | ( | ) |
ScripterExport void init_thread_locals | ( | ) |
void free_thread_locals | ( | ) |
void copy_thread_locals | ( | MAXScript_TLS * | source, |
MAXScript_TLS * | target | ||
) |
ScripterExport int thread_locals_index |