// +build go1.4 package log import "sync/atomic" // swapHandler wraps another handler that may be swapped out // dynamically at runtime in a thread-safe fashion. type swapHandler struct { handler atomic.Value } func (h *swapHandler) Log(r *Record) error { return (*h.handler.Load().(*Handler)).Log(r) } func (h *swapHandler) Swap(newHandler Handler) { h.handler.Store(&newHandler) } func (h *swapHandler) Get() Handler { return *h.handler.Load().(*Handler) } ='https://www.lant.com.tw/~lantw44/git/freebsd-ports-gnome' title='freebsd-ports-gnome Git repository'/>
aboutsummaryrefslogtreecommitdiffstats
path: root/games/hedgewars
Commit message (Expand)AuthorAgeFilesLines
* - Bump PORTREVISION. lang/fpc was updated to 3.0.4acm2018-02-041-0/+1
* - Update to 0.9.23amdmi32018-02-044-37/+21
* - Fix server buildamdmi32018-02-042-3/+10
* Make ninja opt-out in cmake.mktcberner2017-06-261-1/+1
* - Bump PORTREVISION. Freepascal was updatedacm2017-02-271-1/+1
* - Disable server until it's unbroken (haskell problem)amdmi32016-09-281-1/+1