123 |
T& GetConfigForUpdate(); |
T& GetConfigForUpdate(); |
124 |
|
|
125 |
/** |
/** |
126 |
* Get the data on update side <b>unprotected</b>, that is |
* Get the data on update side for read-only access. |
|
* <b>without</b> locking or any means of synchronizations. |
|
|
* |
|
|
* Due to its nature this must only be called for read access and |
|
|
* you have to make sure by yourself, that the data/member you |
|
|
* access is really safe for concurrent read access (i.e. SGI's |
|
|
* implementation of std::vector::size() would be safe). |
|
|
* |
|
|
* Only use this when you are absolutely sure what you are doing! |
|
127 |
*/ |
*/ |
128 |
const T& GetUnsafeUpdateConfig() const { |
const T& GetUnsafeUpdateConfig() const { |
129 |
return config[updateIndex]; |
return config[updateIndex]; |