MCPcopy Create free account

hub / github.com/Balun-courses/concurrency_go / functions

Functions875 in github.com/Balun-courses/concurrency_go

↓ 1 callersMethodunexpungeLocked
()
lessons/4_lesson_sync_primitives_2/sync_map_implementation/main.go:74
↓ 1 callersFunctionupperBound
(array []string, target string)
database/internal/database/filesystem/utils.go:74
↓ 1 callersMethodwriteDataToStream
(segmentData []byte)
database/internal/database/storage/replication/slave.go:147
MethodAcquire
()
lessons/4_lesson_sync_primitives_2/semaphore/main.go:21
MethodAdd
(value int)
lessons/3_lesson_sync_primitives_1/incorrect_buffer_design/main.go:14
MethodAddTask
AddTask add task to pool
lessons/10_lesson_live_coding_practise/worker_pool/main.go:48
MethodAllow
()
lessons/6_lesson_channel_patterns/rate_limiter/main.go:36
MethodAppend
Append add message to batch
lessons/10_lesson_live_coding_practise/batcher/main.go:45
MethodBar
(printBar func())
lessons/3_lesson_sync_primitives_1/print_foo_bar_alternately/main.go:25
FunctionBenchmark
additional/open_lessons/mutex_internals/memory_barriers/main.cpp:52
FunctionBenchmarkAdd
(b *testing.B)
lessons/4_lesson_sync_primitives_2/atomic_performance/perf_test.go:28
FunctionBenchmarkAtomicAdd
(b *testing.B)
lessons/4_lesson_sync_primitives_2/atomic_performance/perf_test.go:21
FunctionBenchmarkAtomicCounter
(b *testing.B)
lessons/4_lesson_sync_primitives_2/false_sharing/perf_test.go:58
FunctionBenchmarkCalculation
(b *testing.B)
lessons/9_lesson_concurrency_patterns/amdala/perf_test.go:34
FunctionBenchmarkCopy
(b *testing.B)
additional/lesson_testing_and_profiling/benchmark_profile/bench_test.go:46
FunctionBenchmarkMutex
go test -bench=. perf_test.go
lessons/3_lesson_sync_primitives_1/defer_performance/perf_test.go:10
FunctionBenchmarkMutexAdd
go test -bench=. perf_test.go
lessons/4_lesson_sync_primitives_2/rw_mutex_performance/perf_test.go:10
FunctionBenchmarkMutexAdd
go test -bench=. perf_test.go
lessons/4_lesson_sync_primitives_2/atomic_performance/perf_test.go:11
FunctionBenchmarkMutexWithDefer
(b *testing.B)
lessons/3_lesson_sync_primitives_1/defer_performance/perf_test.go:22
FunctionBenchmarkRWMutexAdd
(b *testing.B)
lessons/4_lesson_sync_primitives_2/rw_mutex_performance/perf_test.go:20
FunctionBenchmarkWithPool
(b *testing.B)
lessons/4_lesson_sync_primitives_2/pool/pool_test.go:33
FunctionBenchmarkWithoutPool
(b *testing.B)
lessons/4_lesson_sync_primitives_2/pool/pool_test.go:44
MethodCancelTimeout
CancelTimeout cancel running of some function
lessons/10_lesson_live_coding_practise/scheduler/main.go:47
MethodClose
Close cancel all functions
lessons/10_lesson_live_coding_practise/scheduler/main.go:58
MethodClose
Close close pool and wait all the tasks
lessons/10_lesson_live_coding_practise/worker_pool/main.go:69
MethodClose
Close wait worker and flush buffer before closing
lessons/10_lesson_live_coding_practise/batcher/main.go:112
FunctionContextWithTxID
(parent context.Context, value int64)
database/internal/common/contexts.go:7
MethodData
()
lessons/3_lesson_sync_primitives_1/incorrect_buffer_design/main.go:21
MethodDeadline
()
lessons/7_lesson_contexts_and_memory_barriers/context_with_timeout_implementation/main.go:58
MethodDel
Del mocks base method.
database/internal/database/database_mock.go:77
MethodDel
Del indicates an expected call of Del.
database/internal/database/database_mock.go:85
MethodDel
(context.Context, string)
database/internal/database/storage/storage.go:23
MethodDel
Del mocks base method.
database/internal/database/storage/storage_mock.go:40
MethodDel
Del indicates an expected call of Del.
database/internal/database/storage/storage_mock.go:46
MethodDel
Del mocks base method.
database/internal/database/storage/storage_mock.go:102
MethodDel
Del indicates an expected call of Del.
database/internal/database/storage/storage_mock.go:110
MethodDel
(ctx context.Context, key string)
database/internal/database/storage/wal/wal.go:87
MethodDel
(ctx context.Context, key string)
database/internal/database/storage/engine/in_memory/engine.go:66
MethodDelete
(key string)
lessons/8_lesson_sync_algorithms_and_lock_free/sharded_map/main.go:63
MethodDelete
(key string)
lessons/4_lesson_sync_primitives_2/sync_map_implementation/main.go:141
FunctionDoQeury
(qyeryStr string)
lessons/7_lesson_contexts_and_memory_barriers/context_handling/main.go:10
MethodEXPECT
EXPECT returns an object that allows the caller to indicate expected use.
database/internal/database/storage/wal/wal_mock.go:67
MethodExecute
(income Message)
lessons/9_lesson_concurrency_patterns/actors/main.go:16
MethodExecute
(income Message)
lessons/9_lesson_concurrency_patterns/actors/main.go:32
MethodFoo
(printFoo func())
lessons/3_lesson_sync_primitives_1/print_foo_bar_alternately/main.go:17
MethodForEach
ForEach mocks base method.
database/internal/database/storage/wal/logs_reader_mock.go:37
MethodForEach
ForEach indicates an expected call of ForEach.
database/internal/database/storage/wal/logs_reader_mock.go:45
FunctionGenerateWithChannel
(start, end int)
lessons/6_lesson_channel_patterns/generator/main.go:13
MethodGet
Get mocks base method.
database/internal/database/database_mock.go:91
MethodGet
Get indicates an expected call of Get.
database/internal/database/database_mock.go:100
MethodGet
Get mocks base method.
database/internal/database/storage/storage_mock.go:52
MethodGet
Get indicates an expected call of Get.
database/internal/database/storage/storage_mock.go:61
MethodGet
(ctx context.Context, key string)
database/internal/database/storage/engine/in_memory/engine.go:52
MethodGet
()
database/internal/concurrency/future.go:15
MethodGet
Get need to proxy only one method from interface
lessons/10_lesson_live_coding_practise/cache/main.go:103
MethodGet
(key string)
lessons/8_lesson_sync_algorithms_and_lock_free/sharded_map/main.go:19
MethodGet
(key string)
lessons/8_lesson_sync_algorithms_and_lock_free/sharded_map/main.go:53
MethodGet
(key string)
lessons/8_lesson_sync_algorithms_and_lock_free/rcu/cache_with_atomic.go:48
MethodGet
(key string)
lessons/8_lesson_sync_algorithms_and_lock_free/rcu/cache_with_mutex.go:48
MethodGet
()
lessons/6_lesson_channel_patterns/future_with_promise/main.go:18
MethodGet
(key string)
lessons/3_lesson_sync_primitives_1/recursive_lock/main.go:27
MethodGet
()
lessons/4_lesson_sync_primitives_2/pool_implementation/main.go:46
MethodGet
()
lessons/4_lesson_sync_primitives_2/false_sharing/perf_test.go:23
MethodGet
()
lessons/4_lesson_sync_primitives_2/false_sharing/perf_test.go:37
MethodGet
()
lessons/4_lesson_sync_primitives_2/false_sharing/perf_test.go:49
MethodGet
(int32, string)
lessons/9_lesson_concurrency_patterns/mvcc/scheduler.go:11
MethodGet
(key string)
lessons/9_lesson_concurrency_patterns/mvcc/transaction.go:39
MethodGet
(key string)
lessons/9_lesson_concurrency_patterns/2pl/storage.go:22
MethodGet
(key string)
lessons/9_lesson_concurrency_patterns/2pl/transaction.go:45
FunctionGetInstance
()
lessons/3_lesson_sync_primitives_1/sync_singleton/main.go:9
FunctionGetTxIDFromContext
(ctx context.Context)
database/internal/common/contexts.go:11
FunctionHandle
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
MethodIncrement
(int)
lessons/4_lesson_sync_primitives_2/false_sharing/perf_test.go:33
MethodIncrement
(idx int)
lessons/4_lesson_sync_primitives_2/false_sharing/perf_test.go:45
FunctionIncrementAndGet
(pointer *int32)
lessons/4_lesson_sync_primitives_2/cas_loop/main.go:7
MethodIsMaster
IsMaster mocks base method.
database/internal/database/storage/storage_mock.go:168
MethodIsMaster
IsMaster indicates an expected call of IsMaster.
database/internal/database/storage/storage_mock.go:176
MethodIsMaster
()
database/internal/database/storage/replication/slave.go:87
MethodIsMaster
()
database/internal/database/storage/replication/master.go:62
FunctionLess
(lhs, rhs VersionedKey)
lessons/9_lesson_concurrency_patterns/mvcc/storage.go:14
MethodLock
additional/open_lessons/mutex_internals/memory_barriers/main.cpp:35
MethodLock
Здесь нет гарантии прогресса (liveness), так как могут несколько горутин могут помешать друг другу и попасть в livelock
lessons/4_lesson_sync_primitives_2/broken_mutex_3/main.go:21
MethodLock
()
lessons/4_lesson_sync_primitives_2/recursive_mutex_implementation/main.go:42
MethodLock
()
lessons/4_lesson_sync_primitives_2/timed_mutex_implementation/main.go:16
MethodLock
Здесь нет гарантии взаимного исключения (safety), так как несколько горутин могут попасть совместно в критическую секцию
lessons/4_lesson_sync_primitives_2/broken_mutex_2/main.go:17
MethodLock
()
lessons/4_lesson_sync_primitives_2/spinlock_with_yield/main.go:21
MethodLock
Здесь есть data race и нет гарантии взаимного исключения (safety), так как несколько горутин могут попасть совместно в критическую секцию
lessons/4_lesson_sync_primitives_2/broken_mutex_1/main.go:15
MethodLock
()
lessons/4_lesson_sync_primitives_2/ticket_lock/main.go:17
MethodLock
()
lessons/4_lesson_sync_primitives_2/spinlock_combined/main.go:23
FunctionLockRLockedMutex
()
lessons/4_lesson_sync_primitives_2/rw_mutex_operations/main.go:17
FunctionNewBatcher
(action func([]string), size int, interval time.Duration)
lessons/10_lesson_live_coding_practise/batcher/main.go:22
FunctionNewBuffer
()
lessons/3_lesson_sync_primitives_1/incorrect_buffer_design/main.go:10
FunctionNewCache
(ctx context.Context)
lessons/8_lesson_sync_algorithms_and_lock_free/rcu/cache_with_mutex.go:14
FunctionNewCache
()
lessons/3_lesson_sync_primitives_1/recursive_lock/main.go:14
FunctionNewCacheRCU
(ctx context.Context)
lessons/8_lesson_sync_algorithms_and_lock_free/rcu/cache_with_atomic.go:14
FunctionNewFooBar
(number int)
lessons/3_lesson_sync_primitives_1/print_foo_bar_alternately/main.go:11
FunctionNewLeakyBucketLimiter
(limit int, period time.Duration)
lessons/6_lesson_channel_patterns/rate_limiter/main.go:11
FunctionNewMap
()
lessons/8_lesson_sync_algorithms_and_lock_free/sharded_map/main.go:13
FunctionNewMap
()
lessons/3_lesson_sync_primitives_1/lazy_initialization/main.go:10
FunctionNewMaster
(server TCPServer, walDirectory string, logger *zap.Logger)
database/internal/database/storage/replication/master.go:24
← previousnext →401–500 of 875, ranked by callers