CLucene - a full-featured, c++ search engine
API Documentation
#include <ThreadLocal.h>
Public Member Functions | |
| ThreadLocal () | |
| ~ThreadLocal () | |
| T | get () |
| void | setNull () |
| Call this function to clear the local thread data for this ThreadLocal. | |
| void | set (T t) |
| lucene::util::ThreadLocal< T, _deletor >::ThreadLocal | ( | ) | [inline] |
References SCOPED_LOCK_MUTEX, and lucene::util::ThreadLocalBase::threadLocals.
| lucene::util::ThreadLocal< T, _deletor >::~ThreadLocal | ( | ) | [inline] |
| T lucene::util::ThreadLocal< T, _deletor >::get | ( | ) | [inline] |
| void lucene::util::ThreadLocal< T, _deletor >::set | ( | T | t | ) | [inline] |
| void lucene::util::ThreadLocal< T, _deletor >::setNull | ( | ) | [inline, virtual] |
Call this function to clear the local thread data for this ThreadLocal.
Calling set(NULL) does the same thing, except this function is virtual and can be called without knowing the template.
Implements lucene::util::ThreadLocalBase.