MCPcopy Create free account

hub / github.com/MultithreadedJSBook/code-samples / functions

Functions82 in github.com/MultithreadedJSBook/code-samples

↓ 11 callersMethodwrite
(data /*: Uint8Array */)
ch6-ring-buffer/ring-buffer.js:31
↓ 4 callersMethodexec
(method, ...args)
ch2-patterns/rpc-worker.js:17
↓ 4 callersFunctionsetBool
(slot, value)
ch4-serialization/booleans.js:3
↓ 3 callersMethodexec
(fn)
ch6-mutex/mutex.js:29
↓ 3 callersFunctiongetBool
(slot)
ch4-serialization/booleans.js:6
↓ 3 callersFunctionsleep
(ms)
ch2-patterns/worker.js:1
↓ 2 callersMethodexec
(method, ...args)
ch6-actors/rpc-worker.js:35
↓ 2 callersMethodread
(bytes)
ch6-ring-buffer/ring-buffer.js:60
↓ 1 callersMethodacquire
()
ch6-mutex/mutex.js:14
↓ 1 callersFunctionasyncOnMessageWrap
(fn)
ch2-patterns/worker.js:3
↓ 1 callersFunctionasyncOnMessageWrap
(fn)
ch8-template-render/worker.js:4
↓ 1 callersFunctionasyncOnMessageWrap
(fn)
ch6-actors/worker.js:3
↓ 1 callersFunctionasyncOnMessageWrap
(fn)
ch6-thread-pool/worker.js:3
↓ 1 callersMethodexec
(method, ...args)
ch8-template-render/rpc-worker.js:35
↓ 1 callersMethodexec
(method, ...args)
ch6-thread-pool/rpc-worker.js:35
↓ 1 callersMethodgetCell
(x, y)
ch5-game-of-life/thread-gol.js:11
↓ 1 callersMethodgetCell
(x, y)
ch5-game-of-life/gol.js:11
↓ 1 callersMethodgetWorker
()
ch8-template-render/rpc-worker.js:45
↓ 1 callersMethodgetWorker
()
ch6-actors/rpc-worker.js:45
↓ 1 callersMethodgetWorker
()
ch6-thread-pool/rpc-worker.js:45
↓ 1 callersFunctionisHappy
(num: u64)
ch7-happycoin-as/happycoin.ts:20
↓ 1 callersFunctionisHappy
(num)
ch3-happycoin/happycoin-piscina.js:20
↓ 1 callersFunctionisHappy
(num)
ch3-happycoin/happycoin-threads.js:24
↓ 1 callersFunctionisHappy
(num)
ch3-happycoin/happycoin.js:19
↓ 1 callersFunctionisHappycoin
(num: u64)
ch7-happycoin-as/happycoin.ts:27
↓ 1 callersFunctionisHappycoin
(num)
ch3-happycoin/happycoin-piscina.js:27
↓ 1 callersFunctionisHappycoin
(num)
ch3-happycoin/happycoin-threads.js:31
↓ 1 callersFunctionisHappycoin
(num)
ch3-happycoin/happycoin.js:26
↓ 1 callersFunctionis_happy
ch1-c-threads/happycoin-threads.c:32
↓ 1 callersFunctionis_happy
ch1-c-threads/happycoin.c:26
↓ 1 callersFunctionis_happycoin
ch1-c-threads/happycoin-threads.c:39
↓ 1 callersFunctionis_happycoin
ch1-c-threads/happycoin.c:33
↓ 1 callersFunctioniterate
(...args)
ch5-game-of-life/gol.js:73
↓ 1 callersMethoditerate
(minX, minY, maxX, maxY)
ch5-game-of-life/thread-gol.js:23
↓ 1 callersMethoditerate
(minX, minY, maxX, maxY)
ch5-game-of-life/gol.js:23
↓ 1 callersMethodonMessageHandler
(msg, worker_id)
ch8-template-render/rpc-worker.js:26
↓ 1 callersMethodonMessageHandler
(msg, worker_id)
ch6-actors/rpc-worker.js:26
↓ 1 callersMethodonMessageHandler
(msg, worker_id)
ch6-thread-pool/rpc-worker.js:26
↓ 1 callersFunctionpaint
(cell, x, y)
ch5-game-of-life/gol.js:57
↓ 1 callersFunctionrandom64
()
ch7-happycoin-as/happycoin.ts:5
↓ 1 callersFunctionrandom64
()
ch3-happycoin/happycoin-piscina.js:5
↓ 1 callersFunctionrandom64
()
ch3-happycoin/happycoin-threads.js:9
↓ 1 callersFunctionrandom64
()
ch3-happycoin/happycoin.js:4
↓ 1 callersFunctionrandom64
ch1-c-threads/happycoin-threads.c:13
↓ 1 callersFunctionrandom64
ch1-c-threads/happycoin.c:7
↓ 1 callersFunctionrandomActor
()
ch6-actors/server.js:49
↓ 1 callersMethodrelease
()
ch6-mutex/mutex.js:22
↓ 1 callersFunctionrunCoord
()
ch5-game-of-life/thread-gol.js:139
↓ 1 callersFunctionrunWorker
({ range, i })
ch5-game-of-life/thread-gol.js:129
↓ 1 callersFunctionsumDigitsSquared
(num: u64)
ch7-happycoin-as/happycoin.ts:10
↓ 1 callersFunctionsumDigitsSquared
(num)
ch3-happycoin/happycoin-piscina.js:10
↓ 1 callersFunctionsumDigitsSquared
(num)
ch3-happycoin/happycoin-threads.js:14
↓ 1 callersFunctionsumDigitsSquared
(num)
ch3-happycoin/happycoin.js:9
↓ 1 callersFunctionsum_digits_squared
ch1-c-threads/happycoin-threads.c:22
↓ 1 callersFunctionsum_digits_squared
ch1-c-threads/happycoin.c:16
Functionbad
()
ch2-patterns/worker.js:21
Methodconstructor
(shared, index)
ch6-mutex/mutex.js:9
Methodconstructor
(path)
ch2-patterns/rpc-worker.js:2
Methodconstructor
(path, size = 0, strategy = 'roundrobin')
ch8-template-render/rpc-worker.js:6
Methodconstructor
(size, buffer, paint = () => {})
ch5-game-of-life/thread-gol.js:2
Methodconstructor
(size, buffer, paint = () => {})
ch5-game-of-life/gol.js:2
Methodconstructor
(path, size = 0, strategy = 'roundrobin')
ch6-actors/rpc-worker.js:6
Methodconstructor
(path, size = 0, strategy = 'roundrobin')
ch6-thread-pool/rpc-worker.js:6
Methodconstructor
(meta/*: Uint32Array[3]*/, buffer /*: Uint8Array */)
ch6-ring-buffer/ring-buffer.js:2
Methodconstructor
(shared/*: number | SharedArrayBuffer*/)
ch6-ring-buffer/ring-buffer.js:90
Functionfibonacci
(limit)
ch2-patterns/worker.js:15
FunctiongetHappycoins
(num: u32)
ch7-happycoin-as/happycoin.ts:31
Functionget_happycoins
ch1-c-threads/happycoin-threads.c:43
Functionhandler
ch6-actors/server.js:15
Methodhead
()
ch6-ring-buffer/ring-buffer.js:7
FunctioninitListener
(msg)
ch5-game-of-life/thread-gol.js:113
Methodlength
()
ch6-ring-buffer/ring-buffer.js:23
Functionmain
ch1-c-threads/happycoin-threads.c:65
Functionmain
ch1-c-threads/happycoin.c:37
FunctionmakeRequest
()
ch2-service-workers/main.js:9
MethodonMessageHandler
(msg)
ch2-patterns/rpc-worker.js:9
Methodread
(bytes)
ch6-ring-buffer/ring-buffer.js:104
Functionsquare_sum
(max)
ch2-patterns/worker.js:10
Functionsquare_sum
(max)
ch6-actors/worker.js:10
Functionsquare_sum
(max)
ch6-thread-pool/worker.js:10
Methodtail
()
ch6-ring-buffer/ring-buffer.js:15
Methodwrite
(data)
ch6-ring-buffer/ring-buffer.js:100