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

« back to all changes in this revision

Viewing changes to Kokyu/Kokyu_defs.cpp

  • 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
 
// Kokyu_defs.cpp,v 1.7 2003/10/12 02:56:16 venkita Exp
2
 
 
3
 
#include "Kokyu_defs.h"
4
 
 
5
 
#if ! defined (__ACE_INLINE__)
6
 
#include "Kokyu_defs.i"
7
 
#endif /* __ACE_INLINE__ */
8
 
 
9
 
ACE_RCSID(Kokyu, Kokyu_defs, "Kokyu_defs.cpp,v 1.7 2003/10/12 02:56:16 venkita Exp")
10
 
 
11
 
namespace Kokyu
12
 
{
13
 
   Dispatch_Command::~Dispatch_Command (void)
14
 
   {
15
 
   }
16
 
 
17
 
  DSRT_ConfigInfo::DSRT_ConfigInfo ()
18
 
    :sched_policy_ (ACE_SCHED_RR),
19
 
     sched_scope_ (ACE_SCOPE_THREAD)
20
 
  {
21
 
  }
22
 
 
23
 
Dispatcher_Attributes::Dispatcher_Attributes()
24
 
    :immediate_activation_ (0),
25
 
     sched_policy_ (ACE_SCHED_FIFO),
26
 
     sched_scope_ (ACE_SCOPE_THREAD),
27
 
     base_thread_creation_flags_ (THR_NEW_LWP | THR_BOUND | THR_JOINABLE)
28
 
{
29
 
}
30
 
 
31
 
int Dispatcher_Attributes::thread_creation_flags () const
32
 
{
33
 
   int thread_creation_flags = base_thread_creation_flags_;
34
 
 
35
 
   switch (sched_policy_)
36
 
   {
37
 
      case ACE_SCHED_FIFO: 
38
 
         thread_creation_flags |= THR_SCHED_FIFO;
39
 
         break;
40
 
 
41
 
      case ACE_SCHED_OTHER:
42
 
         thread_creation_flags |= THR_SCHED_DEFAULT;
43
 
         break;
44
 
 
45
 
      case ACE_SCHED_RR:
46
 
         thread_creation_flags |= THR_SCHED_RR;
47
 
         break;
48
 
   }
49
 
 
50
 
   switch (sched_scope_)
51
 
   {
52
 
      case ACE_SCOPE_PROCESS:
53
 
      case ACE_SCOPE_LWP:
54
 
         thread_creation_flags |= THR_SCOPE_PROCESS;
55
 
         break;
56
 
 
57
 
      case ACE_SCOPE_THREAD: 
58
 
      default:        
59
 
         thread_creation_flags |= THR_SCOPE_SYSTEM;
60
 
         break;
61
 
   }
62
 
   return thread_creation_flags;   
63
 
}
64
 
 
65
 
}
66
 
 
67
 
#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION)
68
 
template class ACE_Array<Kokyu::ConfigInfo>;
69
 
template class ACE_Array_Base<Kokyu::ConfigInfo>;
70
 
template class ACE_Array_Iterator<Kokyu::ConfigInfo>;
71
 
#elif defined(ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA)
72
 
#pragma instantiate ACE_Array<Kokyu::ConfigInfo>
73
 
#pragma instantiate ACE_Array_Base<Kokyu::ConfigInfo>
74
 
#pragma instantiate ACE_Array_Iterator<Kokyu::ConfigInfo>
75
 
#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */