What a native worker's init and task see: mesh-rt's Ctx on a CPU thread (views with fault recording, peer views, the input queue, pipes, the request window, counters)
$ sexc add @ajax/mesh-worker-ctx- total 3
- drwxr-xr-x-../
- drwxr-xr-x-Oct 27 03:27v/# 2 versions
- drwxr-xr-x-Oct 27 03:27files/# the files of 0.1.1
- latest
- 0.1.1, published Oct 27 03:27 by ajax
- owners
- ajax
- license
- MIT
- dependencies
- @ajax/mesh-mailbox ^0.1.0, @ajax/mesh-abi-base ^0.1.0, @ajax/mesh-abi-header ^0.1.0, @ajax/mesh-abi-program-table ^0.1.0, @ajax/mesh-abi-control-block ^0.1.0, @ajax/mesh-abi-ring ^0.1.0, @ajax/mesh-abi-node ^0.1.0, @ajax/mesh-abi-trace ^0.1.0, @ajax/mesh-abi-ext ^0.1.0, @ajax/mesh-abi-fault ^0.1.0, @ajax/mesh-abi-input-queue ^0.1.0, @ajax/mesh-abi-ops ^0.1.0, @ajax/mesh-abi-pipe ^0.1.0, @ajax/mesh-abi-pipe-ring ^0.1.0, @ajax/mesh-abi-words ^0.1.0, @ajax/mesh-check ^0.1.0
- dependents
- @ajax/mesh-inproc, @ajax/mesh-mps, @ajax/mesh-prog-gemm, @ajax/mesh-prog-pipesink, @ajax/mesh-prog-pipesrc-n, @ajax/mesh-test-worker, @ajax/mesh-worker, @ajax/mesh-worker-node
- keywords
- mesh alphaos worker native ctx sdk
- homepage
- https://github.com/thomasdavis/alpha-c-mesh/tree/main/packages/mesh-worker-ctx
- repository
- https://github.com/thomasdavis/alpha-c-mesh
1# @ajax/mesh-worker-ctx 2 3What a native worker's `init` and `task` see: mesh-rt's Ctx on a CPU thread. `mesh_view` windows record P_FAULT on any out-of-range or misaligned access (reads give 0, writes are dropped), as on the GPU. The Ctx gives ids, the own view, peer views (the `reads` mask re-read at each call), program lookup, the input queue (concurrent pops by CAS), pipes (push with backpressure, pop, length), the request window and its response, counters, and run requests for READS_ALL programs. 4 5## Ported from 6 7[alpha-rust-mesh](https://github.com/rsafier/alpha-rust-mesh) (Richard Safier, MIT): crates/mesh-worker/src/lib.rs (`Mb`, `View`, `Ctx`, `entry`). 8 9## Tests 10 11Through @ajax/mesh-worker-node's tests (the Rust's three unit tests). 12 13## Licence 14 15MIT. See the repository's LICENSE.