I need a way to use sems on my V188.8.131.52 arm-linux target.
Using SysSemProcess lib makes segmentation fault when attempting to start the runtime, I think the lib might not be implemented on Linux in my current runtime version.
Using SysSem, SysSemEnter or SysSemTry always return ERR_OK, no matter if the sem is locked or not!
IF pSemHandle^ = RTS_INVALID_HANDLE THEN
pSemHandle^ := SysSemCreate(ADR(semCreateResult));
pSemHandle is a pointer to a udint declared in a GVL.
Obviously I have more code that later releases the sem when not needed anymore, but my problem is that I cannot check if the resource is free or not!
I dont what to use SW FB for that because I want to make sure that the P and V functions will be "atomic".
Anyone had any luck with this lib on an arm-linux target?