Example #1
0
 virtual intptr_t    thread_local_get            (int index)
 {
     RL_VERIFY(index >= 0 && (size_t)index < entries_.size());
     entry& ent = entries_[index];
     RL_VERIFY(ent.alive_);
     return ent.value_[current_thread()];
 }
Example #2
0
 virtual void        thread_local_set            (int index, intptr_t value)
 {
     RL_VERIFY(index >= 0 && (size_t)index < entries_.size());
     entry& ent = entries_[index];
     RL_VERIFY(ent.alive_);
     ent.value_[current_thread()] = value;
 }