1
1
12rbah2022-04-01 09:52:06
C++ / C#
12rbah, 2022-04-01 09:52:06

mutex error too many object accesses?

I heard that if you use mutex, you can get an error that looks something like this: "mutex has too many accesses to the object." Do not tell me what it could be connected with?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
res2001, 2022-04-01
@res2001

Find here the error that matches your description
https://linux.die.net/man/3/pthread_mutex_lock
I did not find something.
The only more or less suitable option - EAGAIN - is returned in the case of a recursive mutex when the maximum number of locks is exceeded.
In general, implementations of mutexes can be different, and if it is not a POSIX compliant implementation, then such an error is likely to occur. In this case, see the documentation for your system.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question