Synchronize threads in tc of pipe in libc unistd
authorLokesh B V <lokesh.bv@partner.samsung.com>
Wed, 16 Aug 2017 19:31:03 +0000 (01:01 +0530)
committerLokesh B V <lokesh.bv@partner.samsung.com>
Thu, 17 Aug 2017 05:29:09 +0000 (10:59 +0530)
commitd9b5ba48f17e103c972c8e2d588c4f04f9fc115b
treed98fbdae863d7ffb167d5d38400131969d8dde18
parent6a9040b21f38fc345607ad8545603e62c85b2345
Synchronize threads in tc of pipe in libc unistd

In tc of pipe api in libc unistd tx thread and rx thread
should be synchronized with sem_wait and sem_post,
as we can't know which task would get chance to execute first.

Signed-off-by: Lokesh B V <lokesh.bv@partner.samsung.com>
apps/examples/testcase/le_tc/kernel/tc_libc_unistd.c