3 |
* LinuxSampler - modular, streaming capable sampler * |
* LinuxSampler - modular, streaming capable sampler * |
4 |
* * |
* * |
5 |
* Copyright (C) 2003, 2004 by Benno Senoner and Christian Schoenebeck * |
* Copyright (C) 2003, 2004 by Benno Senoner and Christian Schoenebeck * |
6 |
* Copyright (C) 2005 - 2012 Christian Schoenebeck * |
* Copyright (C) 2005 - 2013 Christian Schoenebeck * |
7 |
* * |
* * |
8 |
* This program is free software; you can redistribute it and/or modify * |
* This program is free software; you can redistribute it and/or modify * |
9 |
* 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 * |
358 |
|
|
359 |
void Condition::Set(bool bCondition) { |
void Condition::Set(bool bCondition) { |
360 |
dmsg(7,("Condition::Set() -> LOCK()\n")); |
dmsg(7,("Condition::Set() -> LOCK()\n")); |
361 |
Lock(); |
LockGuard lock(*this); |
362 |
dmsg(7,("Condition::Set() -> LOCK() passed\n")); |
dmsg(7,("Condition::Set() -> LOCK() passed\n")); |
363 |
if (this->bCondition != bCondition) { |
if (this->bCondition != bCondition) { |
364 |
this->bCondition = bCondition; |
this->bCondition = bCondition; |
379 |
#endif |
#endif |
380 |
} |
} |
381 |
} |
} |
|
Unlock(); |
|
382 |
} |
} |
383 |
|
|
384 |
bool Condition::GetUnsafe() { |
bool Condition::GetUnsafe() { |