What to do with Thread_Control::resource_count?

Sebastian Huber sebastian.huber at embedded-brains.de
Tue Sep 27 13:20:44 UTC 2016


On 23/09/16 15:45, Gedare Bloom wrote:
> Rather than using refcnts, is there a costlier method (e.g. iterating
> some structures) to discover a thread is holding a mutex at this point
> of thread destruction that makes sense to use instead?

For the Classic and POSIX object based mutexes this would be possible, 
but not for the self-contained objects. A global registration needs 
memory and you have to register/unregister an object. One aim of the 
self-contained objects is to avoid both overheads.

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.




More information about the devel mailing list