Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cutajarj/multithreadingingo
/ functions
Functions
89 in github.com/cutajarj/multithreadingingo
⨍
Functions
89
◇
Types & classes
12
↓ 25 callers
Method
Lock
()
spinlocks/spin_lock.go:11
↓ 21 callers
Method
Unlock
()
spinlocks/spin_lock.go:17
↓ 15 callers
Method
Add
(v2 Vector2D)
boids/vector2d.go:10
↓ 10 callers
Method
Wait
()
barriers/barrier.go:18
↓ 6 callers
Method
Wait
()
matrixmultiplicationwtbarriers/barrier.go:18
↓ 4 callers
Function
MoveTrain
(train *Train, distance int, crossings []*Crossing)
deadlocks_train/deadlock/train.go:8
↓ 4 callers
Function
drawIntersection
(screen *ebiten.Image, intersection *Intersection, x int, y int)
deadlocks_train/draw_trains.go:44
↓ 3 callers
Method
DivisionV
(d float64)
boids/vector2d.go:30
↓ 3 callers
Method
MultiplyV
(d float64)
boids/vector2d.go:26
↓ 3 callers
Method
Subtract
(v2 Vector2D)
boids/vector2d.go:14
↓ 2 callers
Method
AddV
(d float64)
boids/vector2d.go:22
↓ 2 callers
Function
NewBarrier
(size int)
matrixmultiplicationwtbarriers/barrier.go:12
↓ 2 callers
Method
borderBounce
(pos, maxBorderPos float64)
boids/boid.go:45
↓ 2 callers
Function
drawXTrain
(screen *ebiten.Image, id int, dir int, start int, yPos int)
deadlocks_train/draw_trains.go:56
↓ 2 callers
Function
drawYTrain
(screen *ebiten.Image, id int, dir int, start int, xPos int)
deadlocks_train/draw_trains.go:66
↓ 2 callers
Function
generateRandomMatrix
(matrix *[matrixSize][matrixSize]int)
matrixmultiplicationwtbarriers/matrix_mulitply_barrier.go:21
↓ 2 callers
Function
generateRandomMatrix
(matrix *[matrixSize][matrixSize]int)
matrixmultiplication/matrix_mulitply.go:23
↓ 2 callers
Function
waitOnBarrier
(name string, timeToSleep int, barrier *Barrier)
barriers/barrier_example.go:5
↓ 1 callers
Method
Distance
(v2 Vector2D)
boids/vector2d.go:39
↓ 1 callers
Function
DrawIntersections
(screen *ebiten.Image)
deadlocks_train/draw_trains.go:21
↓ 1 callers
Function
DrawTracks
(screen *ebiten.Image)
deadlocks_train/draw_trains.go:28
↓ 1 callers
Function
DrawTrains
(screen *ebiten.Image)
deadlocks_train/draw_trains.go:37
↓ 1 callers
Function
NewBarrier
(size int)
barriers/barrier.go:12
↓ 1 callers
Function
NewSpinLock
()
spinlocks/spin_lock.go:21
↓ 1 callers
Function
allFree
(intersectionsToLock []*Intersection)
deadlocks_train/arbitrator/train.go:14
↓ 1 callers
Function
blueRobot
()
deadlocks_simple/red_blue.go:14
↓ 1 callers
Method
calcAcceleration
()
boids/boid.go:15
↓ 1 callers
Function
callLockTwice
()
quizes/thread_sync_quiz_code.go:14
↓ 1 callers
Function
countLetters
(url string, frequency *[26]int32, wg *sync.WaitGroup)
atomicletterfrequency/letter_frequency.go:17
↓ 1 callers
Function
createBoid
(bid int)
boids/boid.go:71
↓ 1 callers
Function
extractWindDirection
(metarChannel chan []string, windsChannel chan []string)
channels/wind_dIrection.go:47
↓ 1 callers
Function
fileSearch
(root string, filename string)
filesearch/concurrent_file_search.go:17
↓ 1 callers
Function
findArea
(inputChannel chan string)
threadpool/shoelace.go:27
↓ 1 callers
Function
generateRandomConvexPolygon
** * Translated into Go lang from https://cglab.ca/~sander/misc/ConvexGeneration/convex.html * Thank you Sander Verdonschot! */
randompolygons/generate_random_polygons.go:20
↓ 1 callers
Function
increment
(x *int, wg *sync.WaitGroup)
quizes/waitgroup_quiz_code.go:25
↓ 1 callers
Method
limit
(lower, upper float64)
boids/vector2d.go:34
↓ 1 callers
Function
lockIntersectionsInDistance
(id, reserveStart, reserveEnd int, crossings []*Crossing)
deadlocks_train/hierarchy/train.go:9
↓ 1 callers
Function
lockIntersectionsInDistance
(id, reserveStart int, reserveEnd int, crossings []*Crossing)
deadlocks_train/arbitrator/train.go:23
↓ 1 callers
Function
mineWindDistribution
(windsChannel chan []string, distChannel chan [8]int)
channels/wind_dIrection.go:60
↓ 1 callers
Method
moveOne
()
boids/boid.go:54
↓ 1 callers
Function
oneTwoThreeA
()
quizes/thread_sync_quiz_code.go:25
↓ 1 callers
Function
oneTwoThreeB
()
quizes/thread_sync_quiz_code.go:41
↓ 1 callers
Function
parseToArray
(textChannel chan string, metarChannel chan []string)
channels/wind_dIrection.go:25
↓ 1 callers
Function
perform_movements
(ledger *[totalAccounts]int32, locks *[totalAccounts]sync.Locker, totalTrans *int64)
spinlocks/multi_ledger.go:18
↓ 1 callers
Function
redRobot
()
deadlocks_simple/red_blue.go:27
↓ 1 callers
Function
runChildThread
()
quizes/cond_variable_quiz_code.go:14
↓ 1 callers
Function
runConsumer
(channel chan string)
quizes/channels_quiz_code.go:5
↓ 1 callers
Function
spendy
()
atomicstingyspendy/atomic_stingy_spendy.go:20
↓ 1 callers
Function
spendy
()
condvariables/stingy_spendy_waits.go:27
↓ 1 callers
Function
spendy
()
sync/stingy_spendy.go:23
↓ 1 callers
Method
start
()
boids/boid.go:64
↓ 1 callers
Function
stingy
()
atomicstingyspendy/atomic_stingy_spendy.go:12
↓ 1 callers
Function
stingy
()
condvariables/stingy_spendy_waits.go:15
↓ 1 callers
Function
stingy
()
sync/stingy_spendy.go:13
↓ 1 callers
Function
workOutRow
(row int)
matrixmultiplicationwtbarriers/matrix_mulitply_barrier.go:29
↓ 1 callers
Function
workOutRow
(row int)
matrixmultiplication/matrix_mulitply.go:31
Function
BuffSender
()
quizes/channels_quiz_code.go:19
Function
Count
()
quizes/waitgroup_quiz_code.go:14
Method
Draw
(screen *ebiten.Image)
deadlocks_train/launcher.go:24
Method
Draw
(screen *ebiten.Image)
boids/main.go:30
Method
Layout
(_, _ int)
deadlocks_train/launcher.go:30
Method
Layout
(_, _ int)
boids/main.go:39
Function
MoveTrain
(train *Train, distance int, crossings []*Crossing)
deadlocks_train/hierarchy/train.go:28
Function
MoveTrain
(train *Train, distance int, crossings []*Crossing)
deadlocks_train/arbitrator/train.go:43
Method
Multiply
(v2 Vector2D)
boids/vector2d.go:18
Function
RunAndWait
()
quizes/thread_sync_quiz_code.go:20
Function
RunMainThread
()
quizes/cond_variable_quiz_code.go:23
Function
RunProducer
()
quizes/channels_quiz_code.go:11
Function
StartThreadsA
()
quizes/thread_sync_quiz_code.go:34
Function
StartThreadsB
()
quizes/thread_sync_quiz_code.go:50
Method
Update
()
deadlocks_train/launcher.go:20
Method
Update
()
boids/main.go:26
Function
WaitGroupQuesA
()
quizes/waitgroup_quiz_code.go:8
Function
main
()
atomicletterfrequency/letter_frequency.go:36
Function
main
()
deadlocks_simple/red_blue.go:40
Function
main
()
randompolygons/generate_random_polygons.go:102
Function
main
Uncomment the functions below to run them.
quizes/quiz_main.go:4
Function
main
()
barriers/barrier_example.go:14
Function
main
()
spinlocks/multi_ledger.go:41
Function
main
()
atomicstingyspendy/atomic_stingy_spendy.go:28
Function
main
()
matrixmultiplicationwtbarriers/matrix_mulitply_barrier.go:41
Function
main
()
deadlocks_train/launcher.go:34
Function
main
()
channels/wind_dIrection.go:80
Function
main
()
matrixmultiplication/matrix_mulitply.go:44
Function
main
()
condvariables/stingy_spendy_waits.go:41
Function
main
()
threadpool/shoelace.go:46
Function
main
()
filesearch/concurrent_file_search.go:34
Function
main
()
boids/main.go:43
Function
main
()
sync/stingy_spendy.go:33