MCPcopy Create free account
hub / github.com/LemonOSProject/LemonOS / Watch

Method Watch

Kernel/src/tty/pty.cpp:115–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113}
114
115void PTYDevice::Watch(FilesystemWatcher& watcher, int events){
116 if(device == PTYMasterDevice){
117 pty->WatchMaster(watcher, events);
118 } else if(device == PTYSlaveDevice) {
119 pty->WatchSlave(watcher, events);
120 } else {
121 assert(!"PTYDevice::Watch: PTYDevice is designated neither slave nor master");
122 }
123}
124
125void PTYDevice::Unwatch(FilesystemWatcher& watcher){
126 if(device == PTYMasterDevice){

Callers

nothing calls this directly

Calls 2

WatchMasterMethod · 0.80
WatchSlaveMethod · 0.80

Tested by

no test coverage detected