OS_GetCSemaValue

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

  • Hi Harsh,

    it is the current count value.
    You are right, the manual makes that not clear.
    Thanks for the hint.

    Best regards,
    Til
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.
  • Please help me clearing my doubt.



    I have one project to make it stable. In this project
    , one
    task need to terminate and hence, semaphore and queue associated to it also
    need to be deleted at run time. semaphore is counting semaphore (used as
    binary). During deletion any task may be waiting for semaphore. For error free
    deletion, which one is best method? set the semaphore value positive value and
    delete ; or signal the semaphore and delete.Can setting the semaphore value
    positive at run time make blocking task free?





    Regards,



    Harsh

    The post was edited 1 time, last by techharsh ().