Type Definition run_shell::ShellChildArc
source · [−]pub type ShellChildArc = Arc<RwLock<Option<ShellChildCore>>>;
Expand description
Arc holding ShellChildCore
.
This is a combination of the following types.
Arc
to make it accessbile by mutliple threads. (e.g. the thread launched theShellChildCore
and the thread sending a signal viaShellHandle
.RwLock
tosignal()
whilewait_null()
is blocking. Bothsignal()
andwait_null()
reguires the read lock which can be obtained by multiple threads at the same time.Option
to enable totake()
ownership ofShellChildCore
to inovkewait()
.