# Gr\_timer.h on next branch

**URL:** <https://www.ruby-forum.com/t/gr-timer-h-on-next-branch/228654>\
**Category:** GNU Radio\
**Created:** [May 1, 2013, 11:16pm UTC](https://www.ruby-forum.com/t/gr-timer-h-on-next-branch/228654 "2013-05-01T23:16:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![copot](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/49beb7/32.png) [@copot](https://www.ruby-forum.com/u/copot)\
**Post date:** [May 1, 2013, 11:16pm UTC](https://www.ruby-forum.com/t/gr-timer-h-on-next-branch/228654/1 "2013-05-01T23:16:16Z")

</div>

Greetings,

There is a gr\_timer.h header in the gnuradio/next installation  
directory, however, when I try to use this class I get

receiver.cpp:(.text+0x1ccf): undefined reference to  
`gr_make_timer(void (*)(gr_timer*, void*), void*)' receiver.cpp:(.text+0x1d6a): undefined reference to`gr\_timer::schedule\_periodic(double, double)’

I can’t find any implementation for this class. Is this some leftover  
from old times?

I need a framework to execute something periodically (like a QTimer  
but without Qt) so if there is a different class or framework I’d be  
interested to know.

Alex

---

<div class="post-metadata">

**Author:** ![copot](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/49beb7/32.png) [@copot](https://www.ruby-forum.com/u/copot)\
**Post date:** [May 2, 2013, 2:07am UTC](https://www.ruby-forum.com/t/gr-timer-h-on-next-branch/228654/2 "2013-05-02T02:07:54Z")

</div>

On Wed, May 1, 2013 at 2:15 PM, Alexandru C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> 

This looks like a stray header file that was never deleted, or something  
that never got implemented from back in 2005.

I’ll delete this on next.

As for getting timer callback functionality, you could use POSIX timers,  
but I’d rather chew on broken glass than try to get process signal-based  
notifications working correctly in multithreaded code.

---

<div class="post-metadata">

**Author:** ![copot](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/49beb7/32.png) [@copot](https://www.ruby-forum.com/u/copot)\
**Post date:** [May 2, 2013, 9:53pm UTC](https://www.ruby-forum.com/t/gr-timer-h-on-next-branch/228654/3 "2013-05-02T21:53:15Z")

</div>

On Thu, May 2, 2013 at 2:06 AM, Johnathan C.  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > 
> 
> I’d rather chew on broken glass than try to get process signal-based  
> notifications working correctly in multithreaded code.

Thanks for the reply. As much as I need this functionality, I agree it  
doesn’t belong in gnuradio.  
It looks like a boost::thread equipped with a  
boost::this\_thread::sleep() will be sufficient for my current needs.

Alex
