2014-04-26 09:18:56 +00:00
|
|
|
package Log
|
|
|
|
|
2014-10-19 17:19:11 +00:00
|
|
|
import (
|
|
|
|
"container/list"
|
|
|
|
"github.com/SommerEngineering/Ocean/Log/Meta"
|
|
|
|
"sync"
|
|
|
|
)
|
2014-04-26 09:18:56 +00:00
|
|
|
|
|
|
|
var (
|
|
|
|
entriesBuffer chan Meta.Entry = nil
|
2014-11-07 12:00:55 +00:00
|
|
|
schedulerExitSignal chan bool = nil
|
2014-04-26 09:18:56 +00:00
|
|
|
logBufferSize int = 500
|
|
|
|
logBufferTimeoutSeconds int = 4
|
|
|
|
logDeviceDelayNumberEvents int = 600
|
|
|
|
logDeviceDelayTimeoutSeconds int = 5
|
|
|
|
channelReady bool = false
|
|
|
|
preChannelBufferUsed bool = false
|
|
|
|
preChannelBuffer *list.List = nil
|
|
|
|
deviceDelayBuffer *list.List = nil
|
|
|
|
devices *list.List = nil
|
|
|
|
mutexDeviceDelays sync.Mutex = sync.Mutex{}
|
|
|
|
mutexPreChannelBuffer sync.Mutex = sync.Mutex{}
|
|
|
|
mutexChannel sync.RWMutex = sync.RWMutex{}
|
|
|
|
mutexDevices sync.RWMutex = sync.RWMutex{}
|
|
|
|
timerIsRunning bool = false
|
|
|
|
projectName string = `not set`
|
|
|
|
senderName Meta.Sender = `System::Log`
|
|
|
|
)
|