summaryrefslogtreecommitdiffhomepage
path: root/signal.go
diff options
context:
space:
mode:
Diffstat (limited to 'signal.go')
-rw-r--r--signal.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/signal.go b/signal.go
index 1505593..d8d7153 100644
--- a/signal.go
+++ b/signal.go
@@ -1,5 +1,12 @@
package main
+func signalSend(s chan<- struct{}) {
+ select {
+ case s <- struct{}{}:
+ default:
+ }
+}
+
type Signal struct {
enabled AtomicBool
C chan struct{}