MCPcopy Create free account
hub / github.com/buke/quickjs-go / WithStrictOSThread

Function WithStrictOSThread

runtime.go:505–509  ·  view source on GitHub ↗

WithStrictOSThread enables strict OS-thread affinity checks.

(enabled bool)

Source from the content-addressed store, hash-verified

503
504// WithStrictOSThread enables strict OS-thread affinity checks.
505func WithStrictOSThread(enabled bool) Option {
506 return func(o *Options) {
507 o.strictThreadAffinity = enabled
508 }
509}
510
511// NewRuntime creates a new quickjs runtime with simplified interrupt handling.
512func NewRuntime(opts ...Option) *Runtime {

Calls

no outgoing calls