Test ohne den scheiß Mutex

master
Klaus Wendel 2 years ago
parent de5a2382d1
commit 05f769f2e4

@ -36,8 +36,9 @@ func GrazeStatusChannel(sc *chan StatusChannelType, mode string, offset StatusCh
}
func GetStatusChannel(sc *chan StatusChannelType, mtxStatusChannelLock *sync.Mutex) StatusChannelType {
defer (*mtxStatusChannelLock).Unlock()
(*mtxStatusChannelLock).Lock()
//defer (*mtxStatusChannelLock).Unlock()
//(*mtxStatusChannelLock).Lock()
cvalue, cstatus := <-*sc
if cstatus {
*sc <- cvalue

Loading…
Cancel
Save