[pok-devel] hello i have some question about semaphore!

[ Thread Index | Date Index | More lists.tuxfamily.org/pok-devel Archives ]


hello 
these day i write code for application on POK
my application require semaphore.
so i used  "pok_sem_create()"  function.


 uint8_t sid;
  pok_ret_t ret;
  ret = pok_sem_create(&sid , 5, 5, POK_SEMAPHORE_DISCIPLINE_FIFO);
  printf("pok_sem_create return=%d, mid=%d\n", ret, sid);

but 
i received message 
" pok_sem_create return=1, mid=0 "

so i ran the pok example about [semaphore]
but i also received same message.

i guess  that return code 1 is invalid argument.
so can u check the semaphore function ?
and can u show me the code example?

how do i solve this problem ?

thank you for  your attention .
best regards.






[NATE] 회원 여러분의 개인정보가 유출되어 심려를 끼쳐드린 점 진심으로 사과드립니다. 
              2차 피해 예방을 위해 비밀번호를 변경해 주시기 바랍니다. [비밀번호 변경 바로가기]



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/