Attention is currently required from: fixeria.
pespin has posted comments on this change by fixeria. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/38206?usp=email )
Change subject: library: add generic Mutex API for parallel components ......................................................................
Patch Set 2:
(1 comment)
File library/Mutex.ttcn:
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/38206/comment/83343dd3_1683c... : PS2, Line 19: port MutexPT LOCK; /* port for LOCKing the mutex */
Ah ok so you are using the port queue based on the the sender to decide/filter whether to operate/wa […]
Ah no erase what I said above. The mutex you are implementing here is no reentrant. If a component calls LOCK operation twice, it will deadlock/timeout.
By implementing it they way I mention you then get a reentrant Mutex. But I guess your implementation is good enough for what we need here for now.