summaryrefslogtreecommitdiffhomepage
path: root/src/misc.go
blob: 2bcb14884444950253bf93ef9de5129012aad7e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package main

func min(a uint, b uint) uint {
	if a > b {
		return b
	}
	return a
}

func sendSignal(c chan struct{}) {
	select {
	case c <- struct{}{}:
	default:
	}
}