Skip to content

Commit 3d294d2

Browse files
committed
fix ReadWriteLockPoint regression
1 parent 7f3f13a commit 3d294d2

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ is recommended for better performances on disk operations (detection of physical
2828
- log.bridges.slf4j [![Maven Central](https://img.shields.io/maven-central/v/net.lecousin.framework/log.bridges.slf4j.svg)](http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22net.lecousin.framework%22%20AND%20a%3A%22log.bridges.slf4j%22)
2929
[![Javadoc](https://img.shields.io/badge/javadoc-0.13.3-brightgreen.svg)](https://www.javadoc.io/doc/net.lecousin.framework/log.bridges.slf4j/0.13.3)
3030

31-
### Branch 0.13
31+
### Current development - branch dev
3232

33-
![build status](https://travis-ci.org/lecousin/java-framework-core.svg?branch=0.13 "Build Status")
34-
![build status](https://ci.appveyor.com/api/projects/status/github/lecousin/java-framework-core?branch=0.13&svg=true "Build Status")
35-
[![Codecov](https://codecov.io/gh/lecousin/java-framework-core/branch/0.13/graph/badge.svg)](https://codecov.io/gh/lecousin/java-framework-core/branch/0.13)
33+
![build status](https://travis-ci.org/lecousin/java-framework-core.svg?branch=dev "Build Status")
34+
![build status](https://ci.appveyor.com/api/projects/status/github/lecousin/java-framework-core?branch=dev&svg=true "Build Status")
35+
[![Codecov](https://codecov.io/gh/lecousin/java-framework-core/branch/dev/graph/badge.svg)](https://codecov.io/gh/lecousin/java-framework-core/branch/dev)
3636

3737
## Multi-threading
3838

net.lecousin.core/src/main/java/net/lecousin/framework/concurrent/synch/ReadWriteLockPoint.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public void startRead() {
4444
* If the lock point is used in write mode, this method will return a SynchronizationPoint unblocked when read can start.
4545
*/
4646
public SynchronizationPoint<NoException> startReadAsync() {
47-
return startReadAsync(false);
47+
return startReadAsync(true);
4848
}
4949

5050
/** To call when a thread wants to enter read mode.
@@ -106,7 +106,7 @@ public void startWrite() {
106106
* If the lock point is used in read mode, this method will return a SynchronizationPoint unblocked when write can start.
107107
*/
108108
public SynchronizationPoint<NoException> startWriteAsync() {
109-
return startWriteAsync(false);
109+
return startWriteAsync(true);
110110
}
111111

112112
/** To call when a thread wants to enter write mode.

0 commit comments

Comments
 (0)