File: atomic_appengine.go

package info (click to toggle)
golang-github-zenazn-goji 1.0.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 464 kB
  • sloc: makefile: 3
file content (14 lines) | stat: -rw-r--r-- 261 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// +build appengine

package web

func (rt *router) getMachine() *routeMachine {
	rt.lock.Lock()
	defer rt.lock.Unlock()
	return rt.machine
}

// We always hold the lock when calling setMachine.
func (rt *router) setMachine(m *routeMachine) {
	rt.machine = m
}