1 |
/*************************************************************************** |
/*************************************************************************** |
2 |
* * |
* * |
3 |
* Copyright (C) 2006-2014 Andreas Persson * |
* Copyright (C) 2006-2016 Andreas Persson * |
4 |
* * |
* * |
5 |
* This program is free software; you can redistribute it and/or modify * |
* This program is free software; you can redistribute it and/or modify * |
6 |
* it under the terms of the GNU General Public License as published by * |
* it under the terms of the GNU General Public License as published by * |
197 |
|
|
198 |
template <class T> |
template <class T> |
199 |
SynchronizedConfig<T>::Reader::Reader(SynchronizedConfig& config) : |
SynchronizedConfig<T>::Reader::Reader(SynchronizedConfig& config) : |
200 |
parent(&config), lock(0), lockCount(1) { |
parent(&config), lockCount(1), lock(0) { |
201 |
parent->readers.insert(this); |
parent->readers.insert(this); |
202 |
} |
} |
203 |
|
|
204 |
template <class T> |
template <class T> |
205 |
SynchronizedConfig<T>::Reader::Reader(SynchronizedConfig* config) : |
SynchronizedConfig<T>::Reader::Reader(SynchronizedConfig* config) : |
206 |
parent(config), lock(0), lockCount(1) { |
parent(config), lockCount(1), lock(0) { |
207 |
parent->readers.insert(this); |
parent->readers.insert(this); |
208 |
} |
} |
209 |
|
|