Free Electron
Fork.h
Go to the documentation of this file.
1 /* Copyright (C) 2003-2021 Free Electron Organization
2  Any use of this software requires a license. If a valid license
3  was not distributed with this file, visit freeelectron.org. */
4 
5 /** @file */
6 
7 #ifndef __architecture_Fork_h__
8 #define __architecture_Fork_h__
9 
10 namespace fe
11 {
12 namespace ext
13 {
14 
15 /** Fork a signal
16  */
17 class Fork : public Initialize<Fork>,
18  virtual public ForkI,
19  virtual public HandlerI
20 {
21  public:
22  Fork(void);
23 virtual ~Fork(void);
24  void initialize(void);
25 
26  // AS ForkI
27 virtual void use(Record &r_fork);
28 virtual void spawn(sp<Layout> &l_fork);
29 
30  // AS HandlerI
31 virtual void handle(Record& r_sig);
32 virtual void handleBind(sp<SignalerI> spSignalerI,
33  sp<Layout> l_sig);
34 
35  private:
36  sp<Layout> m_spSpawn;
37  Record m_fork;
38  sp<SignalerI> m_spSignaler;
39  sp<Scope> m_spScope;
40 
41 };
42 
43 } /* namespace ext */
44 } /* namespace fe */
45 
46 #endif /* __architecture_Fork_h__ */
47 
kernel
Definition: namespace.dox:3
virtual void use(Record &r_fork)
Signal using the provided record r_sig when signaling.
Definition: Fork.cc:26
Per-class participation in the Initialized <> mechanism.
Definition: Initialized.h:117
Interface to handle signals from an SignalerI.
Definition: HandlerI.h:22
Reference to an instance of a Layout.
Definition: RecordSB.h:35
The purpose of ForkI is to fire off a signal when itself is signaled.
Definition: ForkI.h:18
Fork a signal.
Definition: Fork.h:17