On 04/05/2021 08:39, Gedare Bloom wrote:
ok. It seems like it was a bit of a misuse of the _Once interface to
directly access its lock mechanism. Does this now make the only use of
_Once_Lock inside of _Once? Maybe, _Once_Lock/Unlock should not be
exposed (change to static in once.c)?
Yes, this
ok. It seems like it was a bit of a misuse of the _Once interface to
directly access its lock mechanism. Does this now make the only use of
_Once_Lock inside of _Once? Maybe, _Once_Lock/Unlock should not be
exposed (change to static in once.c)?
On Sun, May 2, 2021 at 11:00 PM Sebastian Huber
wrot
The allocator mutex is recursive and already used for the task creation
in rtems_timer_initiate_server(). Just use this mutex instead of the
once mutex to serialize the initialization. This avoids a dependency on
condition variables which are not used here.
---
cpukit/rtems/src/timerserver.c | 6