summaryrefslogtreecommitdiff
path: root/TAO/tests/RTScheduling/Thread_Cancel/Thread_Task.h
blob: 3f9d2b1bba76f87f11e1f84804ae88c906932dd7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
//$Id$
#ifndef THREAD_TASK_H
#define THREAD_TASK_H

#include "tao/RTScheduling/RTScheduler.h"
#include "ace/Task.h"
#include "tao/ORB.h"


class Thread_Task : public ACE_Task <ACE_SYNCH>
{
 public:
  int activate_task (CORBA::ORB_ptr orb);

  RTScheduling::Current::IdType* guids (void);
  
 protected:
  /// task svc
  virtual int svc (void);
 private:
  CORBA::ORB_var orb_;
  RTScheduling::Current_var current_;
  RTScheduling::Current::IdType guid_ [4];
  ACE_Lock* shutdown_lock_;
  ACE_Lock* lock_;
  int active_thread_count_;
};

#endif /* THREAD_TASK_H */