|
3ds Max C++ API Reference
|
#include "../ScripterExport.h"#include "../../WindowsDefines.h"#include "../../maxtypes.h"#include "../../maxapi.h"#include "../ScriptSource.h"#include "../protocols/thread_locals.inl"Classes | |
| struct | MAXScript_TLS |
Macros | |
| #define | def_thread_local(type, lcl, init_on_reset, 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()) |
| #define | MAXScript_time_tls() (_tls->use_time_context ? _tls->current_time : GetCOREInterface()->GetTime()) |
Functions | |
| void | needs_redraw_set (MAXScript_TLS *tls=nullptr) |
| void | needs_complete_redraw_set (MAXScript_TLS *tls=nullptr) |
| void | needs_redraw_clear (MAXScript_TLS *tls=nullptr) |
| 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, | |||
| init_on_reset, | |||
| 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()) |
| #define MAXScript_time_tls | ( | ) | (_tls->use_time_context ? _tls->current_time : GetCOREInterface()->GetTime()) |
|
inline |
|
inline |
|
inline |
| void alloc_thread_locals | ( | ) |
| ScripterExport void init_thread_locals | ( | ) |
| void free_thread_locals | ( | ) |
| void copy_thread_locals | ( | MAXScript_TLS * | source, |
| MAXScript_TLS * | target | ||
| ) |
|
extern |
|
extern |
|
extern |