OSDN Git Service

Expose semaphore's file descriptor.
authorSharvil Nanavati <sharvil@google.com>
Sun, 6 Jul 2014 03:42:07 +0000 (20:42 -0700)
committerSharvil Nanavati <sharvil@google.com>
Wed, 9 Jul 2014 16:22:42 +0000 (16:22 +0000)
commitf4013f29e38095abd556e23742ef713840f2f903
tree50de5b9d5a468619247605eb2cd8d0bb78d235b4
parent118bdd58389c77dd69b37e377b4e98ea89d2b14e
Expose semaphore's file descriptor.

|semaphore_get_fd| can be used by callers to determine if it's safe
to call |semaphore_wait| and |semaphore_post| without blocking.

Change-Id: Icf758f03ea2aa85cddcb4ab3f7906b2c587fb8ac
osi/include/semaphore.h
osi/src/semaphore.c