maxscript/kernel/MAXScript_TLS.h File Reference
 
 
 
maxscript/kernel/MAXScript_TLS.h File Reference

This reference page is linked to from the following overview topics: MAXScript Compiler and Interpreter.


#include "../ScripterExport.h"
#include "../../WindowsDefines.h"
#include "../../maxtypes.h"
#include "../../maxapi.h"
#include "../protocols/thread_locals.inl"

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 Documentation

#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())

Function Documentation

void needs_redraw_set ( ) [inline]
{
        if (thread_local(redraw_mode) && thread_local(needs_redraw) == 0) 
                thread_local(needs_redraw) = 1;
}
void needs_complete_redraw_set ( ) [inline]
{
        if thread_local(redraw_mode) 
                thread_local(needs_redraw) = 2;
}
void needs_redraw_clear ( ) [inline]
{
        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 
)

Variable Documentation