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, 2006 Christian Schoenebeck * |
* Copyright (C) 2005 - 2007 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 * |
316 |
* @param bLock - use thread safety mechanisms |
* @param bLock - use thread safety mechanisms |
317 |
* @throws Exception in case an invalid Mode was given |
* @throws Exception in case an invalid Mode was given |
318 |
*/ |
*/ |
319 |
void SetAvailabilityMode(T_key Key, mode_t Mode, bool bLock = true) throw (Exception) { |
void SetAvailabilityMode(T_key Key, mode_t Mode, bool bLock = true) { |
320 |
if (Mode != ON_DEMAND && Mode != ON_DEMAND_HOLD && Mode != PERSISTENT) |
if (Mode != ON_DEMAND && Mode != ON_DEMAND_HOLD && Mode != PERSISTENT) |
321 |
throw Exception("ResourceManager::SetAvailabilityMode(): invalid mode"); |
throw Exception("ResourceManager::SetAvailabilityMode(): invalid mode"); |
322 |
|
|