Changeset 371 for cpp/frams/vm


Ignore:
Timestamp:
04/21/15 15:19:47 (9 years ago)
Author:
Maciej Komosinski
Message:

THREAD_LOCAL uses ThreadLocal_ prefix for variables. The static object inside the single-threaded implementation is no longer associated with a class.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/vm/classes/collectionobj.cpp

    r333 r371  
    149149}
    150150
    151 static THREAD_LOCAL_DEF(SList,tostring_trace);
     151static THREAD_LOCAL_DEF(SList,VectorObject_tostring_trace);
    152152
    153153void VectorObject::get_toString(ExtValue* ret)
     
    155155SString out="[";
    156156//static SListTempl<VectorObject*> trace;
    157 if (tlsGetRef(tostring_trace).find(this)>=0)
     157if (tlsGetRef(VectorObject_tostring_trace).find(this)>=0)
    158158        out+="...";
    159159else
    160160        {
    161         tlsGetRef(tostring_trace)+=this;
     161        tlsGetRef(VectorObject_tostring_trace)+=this;
    162162        for(int i=0;i<data.size();i++)
    163163                {
     
    169169                        out+="null";
    170170                }
    171         tlsGetRef(tostring_trace)-=this;
     171        tlsGetRef(VectorObject_tostring_trace)-=this;
    172172        }
    173173out+="]";
     
    402402SString out="{";
    403403//static SListTempl<DictionaryObject*> trace;
    404 if (tlsGetRef(tostring_trace).find(this)>=0)
     404if (tlsGetRef(VectorObject_tostring_trace).find(this)>=0)
    405405        out+="...";
    406406else
    407407        {
    408         tlsGetRef(tostring_trace)+=this;
     408        tlsGetRef(VectorObject_tostring_trace)+=this;
    409409        for(HashEntryIterator it(hash);it.isValid();)
    410410                {
     
    418418                if (it.isValid()) out+=",";
    419419                }
    420         tlsGetRef(tostring_trace)-=this;
     420        tlsGetRef(VectorObject_tostring_trace)-=this;
    421421        }
    422422out+="}";
Note: See TracChangeset for help on using the changeset viewer.