wasm-posix-host
    Preparing search index...

    Class SyscallChannel

    Index

    Constructors

    • Parameters

      • buffer: ArrayBuffer | SharedArrayBuffer
      • byteOffset: number = 0

      Returns SyscallChannel

    Accessors

    • get dataBuffer(): Uint8Array

      Returns Uint8Array

    • get syscallNumber(): number

      Returns number

    Methods

    • Parameters

      • index: number

      Returns number

    • Set status to Complete and wake any thread waiting on the status field. Only meaningful when the underlying buffer is a SharedArrayBuffer.

      Returns void

    • Set status to Error and wake any thread waiting on the status field. Only meaningful when the underlying buffer is a SharedArrayBuffer.

      Returns void

    • Parameters

      • value: number

      Returns void

    • Parameters

      • value: number

      Returns void

    • Block the current thread until the channel status transitions to Complete or Error. Returns the final status.

      Only works with SharedArrayBuffer (requires Atomics.wait support).

      Returns ChannelStatus