~ubuntu-branches/ubuntu/breezy/ace/breezy

« back to all changes in this revision

Viewing changes to TAO/examples/RTCORBA/Activity/Thread_Task.h

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad, Benjamin Montgomery, Adam Conrad
  • Date: 2005-09-18 22:51:38 UTC
  • mfrom: (1.2.1 upstream) (2.1.1 sarge) (0.1.2 woody)
  • Revision ID: james.westby@ubuntu.com-20050918225138-seav22q6fyylb536
Tags: 5.4.7-3ubuntu1
[ Benjamin Montgomery ]
* Added a patch for amd64 and powerpc that disables the compiler
  option -fvisibility-inlines-hidden

[ Adam Conrad ]
* Added DPATCH_OPTION_CPP=1 to debian/patches/00options to make
  Benjamin's above changes work correctly with dpatch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* -*- C++ -*- */
2
 
//=============================================================================
3
 
/**
4
 
 *  @file Thread_Task.h
5
 
 *
6
 
 *  Thread_Task.h,v 1.4 2003/02/13 17:48:18 pradeep Exp
7
 
 *
8
 
 *  A periodic task implementation that uses sleep.
9
 
 *
10
 
 *  @author Pradeep Gore <pradeep@cs.wustl.edu>
11
 
 */
12
 
//=============================================================================
13
 
#ifndef THREAD_TASK_H
14
 
#define THREAD_TASK_H
15
 
 
16
 
#include "Periodic_Task.h"
17
 
 
18
 
/**
19
 
 * @class Thread_Task
20
 
 *
21
 
 * @brief A periodic task implementation that uses sleep.
22
 
 *
23
 
 * simplified Periodic Task -
24
 
 * if the <name_> activity, which is fired every <period_> time intervals,
25
 
 * exceeds its <exec_time_>, it is "late".
26
 
 * if <exec_time_> is greater than the <period_>, the activity(s) for the
27
 
 * overlapped period(s) are considered "missed".
28
 
 *
29
 
 */
30
 
class activity_Export Thread_Task : public Periodic_Task
31
 
{
32
 
 public:
33
 
  /// Constructor
34
 
  Thread_Task (void);
35
 
 
36
 
  /// Activate thread(s).
37
 
  virtual int activate_task (ACE_Barrier* barrier, RTCORBA::PriorityMapping *priority_mapping);
38
 
 
39
 
 protected:
40
 
 
41
 
  /// task svc
42
 
  virtual int svc (void);
43
 
};
44
 
 
45
 
#endif /* THREAD_TASK_H */