| fairrwlock.hxx (07a3d7f1) | fairrwlock.hxx (796b7e2a) |
|---|---|
| 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 231 unchanged lines hidden (view full) --- 240 @return - 241 242 @onerror - 243 *//*-*****************************************************************************************************/ 244 inline virtual void downgradeWriteAccess() 245 { 246 // You must be a writer to call this method! 247 // We can't check it - but otherwise it's your problem ... | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 231 unchanged lines hidden (view full) --- 240 @return - 241 242 @onerror - 243 *//*-*****************************************************************************************************/ 244 inline virtual void downgradeWriteAccess() 245 { 246 // You must be a writer to call this method! 247 // We can't check it - but otherwise it's your problem ... |
| 248 // Thats why you don't need any mutex here. | 248 // That's why you don't need any mutex here. |
| 249 250 #ifdef ENABLE_MUTEXDEBUG 251 // A writer is an exclusiv accessor! 252 LOG_ASSERT2( m_nReadCount!=0, "FairRWLock::downgradeWriteAccess()", "No threadsafe code detected ... : Read count != 0!" ) 253 #endif 254 255 // Register himself as "new" reader. 256 // This value must be 0 before - because we support single writer access only! --- 26 unchanged lines hidden --- | 249 250 #ifdef ENABLE_MUTEXDEBUG 251 // A writer is an exclusiv accessor! 252 LOG_ASSERT2( m_nReadCount!=0, "FairRWLock::downgradeWriteAccess()", "No threadsafe code detected ... : Read count != 0!" ) 253 #endif 254 255 // Register himself as "new" reader. 256 // This value must be 0 before - because we support single writer access only! --- 26 unchanged lines hidden --- |