# Semaphore

**URL:** <https://verificationacademy.com/forums/t/semaphore/39253>\
**Category:** SystemVerilog\
**Tags:** SystemVerilog\
**Created:** [July 1, 2021, 12:53am UTC](https://verificationacademy.com/forums/t/semaphore/39253 "2021-07-01T00:53:05Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![dave\_59](https://verificationacademy.com/forums/user_avatar/verificationacademy.com/dave_59/32/4499_2.png) [@dave\_59](https://verificationacademy.com/forums/u/dave_59)\
**Post date:** [July 1, 2021, 6:36am UTC](https://verificationacademy.com/forums/t/semaphore/39253/5 "2021-07-01T06:36:32Z")

</div>

_In reply to [timag](https://verificationacademy.com/forums/t/semaphore/39253/4):_

It really doesn’t make much sense to use semaphores in functions. Yes you can call try\_get() from another function. But what if it returns false, then what do you do? You can’t keep calling it until it returns true because you get into a infinite zero-delay loop.

---

_[View the full topic](https://verificationacademy.com/forums/t/semaphore/39253)._
