| 60 | } |
| 61 | |
| 62 | bool tryEnter(const char* aReason) |
| 63 | { |
| 64 | const bool ret = Semaphore::tryEnter(); |
| 65 | if (ret) |
| 66 | { |
| 67 | fb_assert(!locked); |
| 68 | #ifdef DEV_BUILD |
| 69 | locked = true; |
| 70 | #endif |
| 71 | reason(aReason); |
| 72 | } |
| 73 | return ret; |
| 74 | } |
| 75 | |
| 76 | void leave() |
| 77 | { |
nothing calls this directly
no test coverage detected