[SOLVED] semaphore already created?

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • Hi Axel,

    no, there is unfortunately no easy way and I don't think you example will work like that since you have only declared a pointer but not the variable itself.
    Usually it would be something like:

    OS_RSEMA sema;


    But &sema has also a valid value before OS_CreateRSema() .

    With the debug build of embOS you could check sema.Id which gets a valid value when the semaphore is created.
    But this Id member is only available in embOS debug builds.

    Best regards,