Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Balun-courses/concurrency_go
/ functions
Functions
875 in github.com/Balun-courses/concurrency_go
⨍
Functions
875
◇
Types & classes
175
↓ 1 callers
Method
unexpungeLocked
()
lessons/4_lesson_sync_primitives_2/sync_map_implementation/main.go:74
↓ 1 callers
Function
upperBound
(array []string, target string)
database/internal/database/filesystem/utils.go:74
↓ 1 callers
Method
writeDataToStream
(segmentData []byte)
database/internal/database/storage/replication/slave.go:147
Method
Acquire
()
lessons/4_lesson_sync_primitives_2/semaphore/main.go:21
Method
Add
(value int)
lessons/3_lesson_sync_primitives_1/incorrect_buffer_design/main.go:14
Method
AddTask
AddTask add task to pool
lessons/10_lesson_live_coding_practise/worker_pool/main.go:48
Method
Allow
()
lessons/6_lesson_channel_patterns/rate_limiter/main.go:36
Method
Append
Append add message to batch
lessons/10_lesson_live_coding_practise/batcher/main.go:45
Method
Bar
(printBar func())
lessons/3_lesson_sync_primitives_1/print_foo_bar_alternately/main.go:25
Function
Benchmark
additional/open_lessons/mutex_internals/memory_barriers/main.cpp:52
Function
BenchmarkAdd
(b *testing.B)
lessons/4_lesson_sync_primitives_2/atomic_performance/perf_test.go:28
Function
BenchmarkAtomicAdd
(b *testing.B)
lessons/4_lesson_sync_primitives_2/atomic_performance/perf_test.go:21
Function
BenchmarkAtomicCounter
(b *testing.B)
lessons/4_lesson_sync_primitives_2/false_sharing/perf_test.go:58
Function
BenchmarkCalculation
(b *testing.B)
lessons/9_lesson_concurrency_patterns/amdala/perf_test.go:34
Function
BenchmarkCopy
(b *testing.B)
additional/lesson_testing_and_profiling/benchmark_profile/bench_test.go:46
Function
BenchmarkMutex
go test -bench=. perf_test.go
lessons/3_lesson_sync_primitives_1/defer_performance/perf_test.go:10
Function
BenchmarkMutexAdd
go test -bench=. perf_test.go
lessons/4_lesson_sync_primitives_2/rw_mutex_performance/perf_test.go:10
Function
BenchmarkMutexAdd
go test -bench=. perf_test.go
lessons/4_lesson_sync_primitives_2/atomic_performance/perf_test.go:11
Function
BenchmarkMutexWithDefer
(b *testing.B)
lessons/3_lesson_sync_primitives_1/defer_performance/perf_test.go:22
Function
BenchmarkRWMutexAdd
(b *testing.B)
lessons/4_lesson_sync_primitives_2/rw_mutex_performance/perf_test.go:20
Function
BenchmarkWithPool
(b *testing.B)
lessons/4_lesson_sync_primitives_2/pool/pool_test.go:33
Function
BenchmarkWithoutPool
(b *testing.B)
lessons/4_lesson_sync_primitives_2/pool/pool_test.go:44
Method
CancelTimeout
CancelTimeout cancel running of some function
lessons/10_lesson_live_coding_practise/scheduler/main.go:47
Method
Close
Close cancel all functions
lessons/10_lesson_live_coding_practise/scheduler/main.go:58
Method
Close
Close close pool and wait all the tasks
lessons/10_lesson_live_coding_practise/worker_pool/main.go:69
Method
Close
Close wait worker and flush buffer before closing
lessons/10_lesson_live_coding_practise/batcher/main.go:112
Function
ContextWithTxID
(parent context.Context, value int64)
database/internal/common/contexts.go:7
Method
Data
()
lessons/3_lesson_sync_primitives_1/incorrect_buffer_design/main.go:21
Method
Deadline
()
lessons/7_lesson_contexts_and_memory_barriers/context_with_timeout_implementation/main.go:58
Method
Del
Del mocks base method.
database/internal/database/database_mock.go:77
Method
Del
Del indicates an expected call of Del.
database/internal/database/database_mock.go:85
Method
Del
(context.Context, string)
database/internal/database/storage/storage.go:23
Method
Del
Del mocks base method.
database/internal/database/storage/storage_mock.go:40
Method
Del
Del indicates an expected call of Del.
database/internal/database/storage/storage_mock.go:46
Method
Del
Del mocks base method.
database/internal/database/storage/storage_mock.go:102
Method
Del
Del indicates an expected call of Del.
database/internal/database/storage/storage_mock.go:110
Method
Del
(ctx context.Context, key string)
database/internal/database/storage/wal/wal.go:87
Method
Del
(ctx context.Context, key string)
database/internal/database/storage/engine/in_memory/engine.go:66
Method
Delete
(key string)
lessons/8_lesson_sync_algorithms_and_lock_free/sharded_map/main.go:63
Method
Delete
(key string)
lessons/4_lesson_sync_primitives_2/sync_map_implementation/main.go:141
Function
DoQeury
(qyeryStr string)
lessons/7_lesson_contexts_and_memory_barriers/context_handling/main.go:10
Method
EXPECT
EXPECT returns an object that allows the caller to indicate expected use.
database/internal/database/storage/wal/wal_mock.go:67
Method
Execute
(income Message)
lessons/9_lesson_concurrency_patterns/actors/main.go:16
Method
Execute
(income Message)
lessons/9_lesson_concurrency_patterns/actors/main.go:32
Method
Foo
(printFoo func())
lessons/3_lesson_sync_primitives_1/print_foo_bar_alternately/main.go:17
Method
ForEach
ForEach mocks base method.
database/internal/database/storage/wal/logs_reader_mock.go:37
Method
ForEach
ForEach indicates an expected call of ForEach.
database/internal/database/storage/wal/logs_reader_mock.go:45
Function
GenerateWithChannel
(start, end int)
lessons/6_lesson_channel_patterns/generator/main.go:13
Method
Get
Get mocks base method.
database/internal/database/database_mock.go:91
Method
Get
Get indicates an expected call of Get.
database/internal/database/database_mock.go:100
Method
Get
Get mocks base method.
database/internal/database/storage/storage_mock.go:52
Method
Get
Get indicates an expected call of Get.
database/internal/database/storage/storage_mock.go:61
Method
Get
(ctx context.Context, key string)
database/internal/database/storage/engine/in_memory/engine.go:52
Method
Get
()
database/internal/concurrency/future.go:15
Method
Get
Get need to proxy only one method from interface
lessons/10_lesson_live_coding_practise/cache/main.go:103
Method
Get
(key string)
lessons/8_lesson_sync_algorithms_and_lock_free/sharded_map/main.go:19
Method
Get
(key string)
lessons/8_lesson_sync_algorithms_and_lock_free/sharded_map/main.go:53
Method
Get
(key string)
lessons/8_lesson_sync_algorithms_and_lock_free/rcu/cache_with_atomic.go:48
Method
Get
(key string)
lessons/8_lesson_sync_algorithms_and_lock_free/rcu/cache_with_mutex.go:48
Method
Get
()
lessons/6_lesson_channel_patterns/future_with_promise/main.go:18
Method
Get
(key string)
lessons/3_lesson_sync_primitives_1/recursive_lock/main.go:27
Method
Get
()
lessons/4_lesson_sync_primitives_2/pool_implementation/main.go:46
Method
Get
()
lessons/4_lesson_sync_primitives_2/false_sharing/perf_test.go:23
Method
Get
()
lessons/4_lesson_sync_primitives_2/false_sharing/perf_test.go:37
Method
Get
()
lessons/4_lesson_sync_primitives_2/false_sharing/perf_test.go:49
Method
Get
(int32, string)
lessons/9_lesson_concurrency_patterns/mvcc/scheduler.go:11
Method
Get
(key string)
lessons/9_lesson_concurrency_patterns/mvcc/transaction.go:39
Method
Get
(key string)
lessons/9_lesson_concurrency_patterns/2pl/storage.go:22
Method
Get
(key string)
lessons/9_lesson_concurrency_patterns/2pl/transaction.go:45
Function
GetInstance
()
lessons/3_lesson_sync_primitives_1/sync_singleton/main.go:9
Function
GetTxIDFromContext
(ctx context.Context)
database/internal/common/contexts.go:11
Function
Handle
ab -n 100000 -c100 http://localhost:6060/headers go tool pprof "http://localhost:6060/debug/pprof/profile?seconds=5" go tool pprof "http://localhost:6
additional/lesson_testing_and_profiling/profile_from_web/main.go:23
Method
Increment
(int)
lessons/4_lesson_sync_primitives_2/false_sharing/perf_test.go:33
Method
Increment
(idx int)
lessons/4_lesson_sync_primitives_2/false_sharing/perf_test.go:45
Function
IncrementAndGet
(pointer *int32)
lessons/4_lesson_sync_primitives_2/cas_loop/main.go:7
Method
IsMaster
IsMaster mocks base method.
database/internal/database/storage/storage_mock.go:168
Method
IsMaster
IsMaster indicates an expected call of IsMaster.
database/internal/database/storage/storage_mock.go:176
Method
IsMaster
()
database/internal/database/storage/replication/slave.go:87
Method
IsMaster
()
database/internal/database/storage/replication/master.go:62
Function
Less
(lhs, rhs VersionedKey)
lessons/9_lesson_concurrency_patterns/mvcc/storage.go:14
Method
Lock
additional/open_lessons/mutex_internals/memory_barriers/main.cpp:35
Method
Lock
Здесь нет гарантии прогресса (liveness), так как могут несколько горутин могут помешать друг другу и попасть в livelock
lessons/4_lesson_sync_primitives_2/broken_mutex_3/main.go:21
Method
Lock
()
lessons/4_lesson_sync_primitives_2/recursive_mutex_implementation/main.go:42
Method
Lock
()
lessons/4_lesson_sync_primitives_2/timed_mutex_implementation/main.go:16
Method
Lock
Здесь нет гарантии взаимного исключения (safety), так как несколько горутин могут попасть совместно в критическую секцию
lessons/4_lesson_sync_primitives_2/broken_mutex_2/main.go:17
Method
Lock
()
lessons/4_lesson_sync_primitives_2/spinlock_with_yield/main.go:21
Method
Lock
Здесь есть data race и нет гарантии взаимного исключения (safety), так как несколько горутин могут попасть совместно в критическую секцию
lessons/4_lesson_sync_primitives_2/broken_mutex_1/main.go:15
Method
Lock
()
lessons/4_lesson_sync_primitives_2/ticket_lock/main.go:17
Method
Lock
()
lessons/4_lesson_sync_primitives_2/spinlock_combined/main.go:23
Function
LockRLockedMutex
()
lessons/4_lesson_sync_primitives_2/rw_mutex_operations/main.go:17
Function
NewBatcher
(action func([]string), size int, interval time.Duration)
lessons/10_lesson_live_coding_practise/batcher/main.go:22
Function
NewBuffer
()
lessons/3_lesson_sync_primitives_1/incorrect_buffer_design/main.go:10
Function
NewCache
(ctx context.Context)
lessons/8_lesson_sync_algorithms_and_lock_free/rcu/cache_with_mutex.go:14
Function
NewCache
()
lessons/3_lesson_sync_primitives_1/recursive_lock/main.go:14
Function
NewCacheRCU
(ctx context.Context)
lessons/8_lesson_sync_algorithms_and_lock_free/rcu/cache_with_atomic.go:14
Function
NewFooBar
(number int)
lessons/3_lesson_sync_primitives_1/print_foo_bar_alternately/main.go:11
Function
NewLeakyBucketLimiter
(limit int, period time.Duration)
lessons/6_lesson_channel_patterns/rate_limiter/main.go:11
Function
NewMap
()
lessons/8_lesson_sync_algorithms_and_lock_free/sharded_map/main.go:13
Function
NewMap
()
lessons/3_lesson_sync_primitives_1/lazy_initialization/main.go:10
Function
NewMaster
(server TCPServer, walDirectory string, logger *zap.Logger)
database/internal/database/storage/replication/master.go:24
← previous
next →
401–500 of 875, ranked by callers