~ubuntu-branches/ubuntu/trusty/gnuradio/trusty-updates

« back to all changes in this revision

Viewing changes to gnuradio-core/src/lib/runtime/gr_timer.h

  • Committer: Package Import Robot
  • Author(s): A. Maitland Bottoms
  • Date: 2012-02-26 21:26:16 UTC
  • mfrom: (1.1.4)
  • Revision ID: package-import@ubuntu.com-20120226212616-vsfkbi1158xshdql
Tags: 3.5.1-1
* new upstream version, re-packaged from scratch with modern tools
    closes: #642716, #645332, #394849, #616832, #590048, #642580,
    #647018, #557050, #559640, #631863
* CMake build

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
#ifndef INCLUDED_GR_TIMER_H
23
23
#define INCLUDED_GR_TIMER_H
24
24
 
 
25
#include <gr_core_api.h>
25
26
#include <gr_types.h>
26
27
 
27
28
class gr_timer;
28
29
 
29
30
typedef boost::shared_ptr<gr_timer> gr_timer_sptr;
30
31
 
31
 
typedef void (*gr_timer_hook)(gr_timer *, void *);
 
32
GR_CORE_API typedef void (*gr_timer_hook)(gr_timer *, void *);
32
33
 
33
34
/*!
34
35
 * \brief create a timeout.
36
37
 * \ingroup misc
37
38
 * gr_timer_hook is called when timer fires.
38
39
 */
39
 
gr_timer_sptr gr_make_timer (gr_timer_hook, void *);
 
40
GR_CORE_API gr_timer_sptr gr_make_timer (gr_timer_hook, void *);
40
41
 
41
42
/*!
42
43
 * \brief implement timeouts
43
44
 */
44
 
class gr_timer {
 
45
class GR_CORE_API gr_timer {
45
46
  double        d_expiry;
46
47
  double        d_period;
47
48
  gr_timer_hook d_hook;
48
49
  void         *d_hook_arg;
49
50
 
50
 
  friend gr_timer_sptr gr_make_timer (gr_timer_hook, void *);
 
51
  friend GR_CORE_API gr_timer_sptr gr_make_timer (gr_timer_hook, void *);
51
52
 
52
53
  gr_timer (...);
53
54