WithStrictOSThread enables strict OS-thread affinity checks.
(enabled bool)
| 503 | |
| 504 | // WithStrictOSThread enables strict OS-thread affinity checks. |
| 505 | func 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. |
| 512 | func NewRuntime(opts ...Option) *Runtime { |
no outgoing calls