lockhelper.cxx (cfd52e18) | lockhelper.cxx (870c3792) |
---|---|
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 --- 369 unchanged lines hidden (view full) --- 378 379/*-************************************************************************************************************//** 380 @interface IRWLock 381 @short downgrade a write access to a read access 382 @descr A guard should call this method to change a write to a read access. 383 New readers can work too - new writer are blocked! 384 We use m_eLockType to differ between all possible "lock-member"!!! 385 | 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 --- 369 unchanged lines hidden (view full) --- 378 379/*-************************************************************************************************************//** 380 @interface IRWLock 381 @short downgrade a write access to a read access 382 @descr A guard should call this method to change a write to a read access. 383 New readers can work too - new writer are blocked! 384 We use m_eLockType to differ between all possible "lock-member"!!! 385 |
386 @attention Ignore shareable mutex(!) - because this call never should release a lock completly! | 386 @attention Ignore shareable mutex(!) - because this call never should release a lock completely! |
387 We change a write access to a read access only. 388 389 @attention a) Don't call this method if you are not a writer! 390 Results are not defined then ... 391 An upgrade can't be implemented really ... because acquiring new access 392 will be the same - there no differences! 393 b) Without function if m_eLockTyp is different from E_FAIRRWLOCK(!) ... 394 because, a mutex don't support it really. --- 151 unchanged lines hidden --- | 387 We change a write access to a read access only. 388 389 @attention a) Don't call this method if you are not a writer! 390 Results are not defined then ... 391 An upgrade can't be implemented really ... because acquiring new access 392 will be the same - there no differences! 393 b) Without function if m_eLockTyp is different from E_FAIRRWLOCK(!) ... 394 because, a mutex don't support it really. --- 151 unchanged lines hidden --- |