summaryrefslogtreecommitdiff
path: root/TAO/tao/Pollable.pidl
blob: 347aa4c9dfcd517d2397e832e2a5e388037de608 (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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
//
// $Id$
//
// ================================================================
//
// = LIBRARY
//   TAO
//
// = FILENAME
//   Policy.pidl
//
// = DESCRIPTION
//   This file was used to generate the code in Pollable{C,S,S_T}.{h,i,cpp}
//   The code is then hand-crafted to compile it inside the ORB, avoid
//   cyclic dependencies and enforce the locality constraints on
//   certain objects.
//
// ================================================================

#pragma prefix "omg.org"

module CORBA
{
  interface PollableSet;

  interface Pollable {
    boolean is_ready(in unsigned long timeout);

    PollableSet create_pollable_set( );
  };

  interface DIIPollable : Pollable { };

  interface PollableSet {

    exception NoPossiblePollable { };
    exception UnknownPollable { };

    DIIPollable create_dii_pollable();

    void add_pollable(in Pollable potential );

    Pollable poll(in unsigned long timeout)
      raises( NoPossiblePollable );

    void remove(in Pollable potential )
      raises( UnknownPollable );

    unsigned short number_left( );
  };

};

#pragma prefix ""