[v2,14/20] ipc: annotate pthread mutex
Checks
Commit Message
pthread_cond_timedwait() requires pending_requests.lock being taken.
Signed-off-by: David Marchand <david.marchand@redhat.com>
---
lib/eal/common/eal_common_proc.c | 3 +++
1 file changed, 3 insertions(+)
@@ -908,6 +908,9 @@ mp_request_async(const char *dst, struct rte_mp_msg *req,
static int
mp_request_sync(const char *dst, struct rte_mp_msg *req,
struct rte_mp_reply *reply, const struct timespec *ts)
+#ifdef RTE_EXEC_ENV_FREEBSD
+ __rte_exclusive_locks_required(pending_requests.lock)
+#endif
{
int ret;
pthread_condattr_t attr;