On Cygwin the PTHREAD_RWLOCK_INITIALIZER macro is not
sufficient to get a properly initialized pthread_rwlock_t
struct. Use the pthread_rwlock_init function instead which
should work on all platforms.
Signed-off-by: Michael Jeanson
---
tests/benchmark/test_rwlock.c| 34 ++
Signed-off-by: Michael Jeanson
---
.gitignore | 1 +
1 file changed, 1 insertion(+)
diff --git a/.gitignore b/.gitignore
index d02ed09..4daa824 100644
--- a/.gitignore
+++ b/.gitignore
@@ -76,6 +76,7 @@ tests/benchmark/test_urcu_wfcq_dynlink
tests/benchmark/*.log
*.so
+*.exe
doc/examples/
The futex_noasync compat code uses a weak symbol to share state across
different shared object which is not possible on Windows with the
Portable Executable format. Use the async compat code for both cases.
Signed-off-by: Michael Jeanson
---
include/urcu/futex.h | 19 +++
1 file
Signed-off-by: Michael Jeanson
---
tests/benchmark/test_rwlock.c | 12 +++-
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/tests/benchmark/test_rwlock.c b/tests/benchmark/test_rwlock.c
index c23e782..02073f1 100644
--- a/tests/benchmark/test_rwlock.c
+++ b/tests/benchmark/t
- On Nov 23, 2018, at 3:27 PM, Michael Jeanson mjean...@efficios.com wrote:
> On Cygwin the PTHREAD_RWLOCK_INITIALIZER macro is not
> sufficient to get a properly initialized pthread_rwlock_t
> struct. Use the pthread_rwlock_init function instead which
> should work on all platforms.
>
> Sign
On 2018-11-23 3:46 p.m., Mathieu Desnoyers wrote:
> - On Nov 23, 2018, at 3:27 PM, Michael Jeanson mjean...@efficios.com
> wrote:
>
>> On Cygwin the PTHREAD_RWLOCK_INITIALIZER macro is not
>> sufficient to get a properly initialized pthread_rwlock_t
>> struct. Use the pthread_rwlock_init func
- On Nov 23, 2018, at 3:54 PM, Michael Jeanson mjean...@efficios.com wrote:
> On 2018-11-23 3:46 p.m., Mathieu Desnoyers wrote:
[...]
>> I typically use "abort()" instead.
>
> exit() is used everywhere in this file to abort, I went with the "local"
> style.
Works for me!
Thanks,
Mathieu
-
On Cygwin the PTHREAD_RWLOCK_INITIALIZER macro is not
sufficient to get a properly initialized pthread_rwlock_t
struct. Use the pthread_rwlock_init function instead which
should work on all platforms.
Signed-off-by: Michael Jeanson
---
tests/benchmark/test_rwlock.c| 42 ++
Merged all 4 patches with some modifications to this patch:
- added missing abort in test_rwlock_timing.c
- added missing pthread_rwlock_destroy.
Thanks,
Mathieu
- On Nov 23, 2018, at 4:47 PM, Michael Jeanson mjean...@efficios.com wrote:
> On Cygwin the PTHREAD_RWLOCK_INITIALIZER macro is