summaryrefslogtreecommitdiffhomepage
path: root/signal.go
diff options
context:
space:
mode:
authorMathias Hall-Andersen <mathias@hall-andersen.dk>2018-05-05 02:20:52 +0200
committerMathias Hall-Andersen <mathias@hall-andersen.dk>2018-05-05 02:20:52 +0200
commit6db41d5a269c79bd04b18dbfa171cc241a6cdcc9 (patch)
tree7cfd9a8461b5c66dd971971e3706ada4c8b0484a /signal.go
parent168ef61a638e4875b260edbc51551bae0dc34ac3 (diff)
Initial version of migration to new event model
- Begin move away from global timer state. - Made logging format more consistent
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{}