Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OneOfOne/lfchan
/ functions
Functions
51 in github.com/OneOfOne/lfchan
⨍
Functions
51
◇
Types & classes
16
↓ 10 callers
Method
Recv
(block bool)
typed/uint64Chan/uint64_lfchan.go:147
↓ 9 callers
Method
Send
(v uint64, block bool)
typed/uint64Chan/uint64_lfchan.go:139
↓ 6 callers
Method
Len
Len returns the number of elements queued
lfchan.go:111
↓ 5 callers
Method
Len
()
typed/uint64Chan/uint64_lfchan.go:97
↓ 4 callers
Method
Close
Close marks the channel as closed
lfchan.go:102
↓ 4 callers
Function
NewSize
NewSize creates a buffered channel, with minimum length of 1, may adjust the size to fit better in the internal queue.
lfchan.go:30
↓ 2 callers
Method
Closed
Closed returns true if the channel have been closed
lfchan.go:105
↓ 2 callers
Method
Closed
()
typed/uint64Chan/uint64_lfchan.go:93
↓ 2 callers
Function
New
New returns a new channel with the buffer set to 1
lfchan.go:25
↓ 2 callers
Method
lock
()
lfchan.go:195
↓ 2 callers
Method
lock
()
typed/uint64Chan/uint64_lfchan.go:171
↓ 2 callers
Method
unlock
()
lfchan.go:204
↓ 2 callers
Method
unlock
()
typed/uint64Chan/uint64_lfchan.go:180
↓ 1 callers
Function
NewSize
(sz int)
typed/uint64Chan/uint64_lfchan.go:25
↓ 1 callers
Function
SelectRecv
SelectRecv returns the first available value from chans, if block is true, it blocks until a value is available. returns nil, false if all channels we
lfchan.go:138
↓ 1 callers
Function
SelectSend
SelectSend sends v to the first available channel, if block is true, it blocks until a channel a accepts the value. returns false if all channels were
lfchan.go:122
↓ 1 callers
Method
get
()
lfchan.go:229
↓ 1 callers
Method
get
()
typed/uint64Chan/uint64_lfchan.go:205
↓ 1 callers
Method
store
(newVal interface{})
lfchan.go:208
↓ 1 callers
Method
store
(newVal uint64)
typed/uint64Chan/uint64_lfchan.go:184
Function
BenchmarkChan
(b *testing.B)
chan_test.go:165
Function
BenchmarkLFChan
(b *testing.B)
chan_test.go:150
Method
Cap
Cap returns the size of the internal queue
lfchan.go:108
Method
Cap
()
typed/uint64Chan/uint64_lfchan.go:95
Method
Close
()
typed/uint64Chan/uint64_lfchan.go:91
Function
New
()
typed/uint64Chan/uint64_lfchan.go:21
Method
Recv
Recv blocks until a value is available and returns v, true, or if the channel is closed and the buffer is empty, it will return nil, false
lfchan.go:72
Method
Recv
Recv is an alias for Chan.Recv.
lfchan.go:167
Method
Recv
(block bool)
lfchan.go:171
Method
Recv
(block bool)
typed/uint64Chan/uint64_lfchan.go:64
Method
Recv
(block bool)
typed/uint64Chan/uint64_lfchan.go:144
Method
RecvOnly
RecvOnly returns a receive-only channel.
lfchan.go:99
Method
RecvOnly
()
typed/uint64Chan/uint64_lfchan.go:89
Function
SelectRecv
(block bool, chans ...Receiver)
typed/uint64Chan/uint64_lfchan.go:120
Function
SelectSend
(block bool, v uint64, chans ...Sender)
typed/uint64Chan/uint64_lfchan.go:106
Method
Send
Send adds v to the buffer of the channel and returns true, if the channel is closed it returns false
lfchan.go:44
Method
Send
Send is an alias for Chan.Send.
lfchan.go:156
Method
Send
(v interface{}, block bool)
lfchan.go:160
Method
Send
(v uint64, block bool)
typed/uint64Chan/uint64_lfchan.go:38
Method
Send
(v uint64, block bool)
typed/uint64Chan/uint64_lfchan.go:136
Method
SendOnly
SendOnly returns a send-only channel.
lfchan.go:96
Method
SendOnly
()
typed/uint64Chan/uint64_lfchan.go:87
Function
TestFIFO
(t *testing.T)
chan_test.go:59
Function
TestLFCPU
(t *testing.T)
chan_test.go:116
Function
TestLFChan
(t *testing.T)
chan_test.go:15
Function
TestLen
needs to run with -count 100 to trigger
chan_test.go:80
Function
TestSelect
(t *testing.T)
chan_test.go:34
Function
TestStdCPU
(t *testing.T)
chan_test.go:133
Function
arg
(idx int)
gen.go:159
Function
init
()
gen.go:33
Function
main
()
gen.go:49