From 928b81f4544cf3f7b423abfdba9b7bbbbcbede23 Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Sun, 12 May 2019 23:34:53 +0200 Subject: [PATCH] Fix return value for in_serial/out_serial --- m-concurrent.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/m-concurrent.h b/m-concurrent.h index 1084091e..7dccebc2 100644 --- a/m-concurrent.h +++ b/m-concurrent.h @@ -495,8 +495,9 @@ { \ CONCURRENTI_CONTRACT(out); \ M_C(name, _read_lock)(out); \ - M_CALL_OUT_SERIAL(oplist, f, out->data); \ + m_serial_return_code_t r = M_CALL_OUT_SERIAL(oplist, f, out->data); \ M_C(name, _read_unlock)(out); \ + return r; \ } \ ,) \ \ @@ -506,10 +507,10 @@ { \ CONCURRENTI_CONTRACT(out); \ M_C(name, _write_lock)(out); \ - bool b = M_CALL_IN_SERIAL(oplist, out->data, f); \ + m_serial_return_code_t r = M_CALL_IN_SERIAL(oplist, out->data, f); \ M_C(name, _write_signal)(out); \ M_C(name, _write_unlock)(out); \ - return b; \ + return r; \ } \ ,) \ \