220725

220725

Work Research

Preparing Data Transmission

  • Inside Thread MutationTransfer.ts, create a transferSync layer.
  • Add a key TransferrableKeys.synchronous.

Transmitting Data

Whenever we need a synchronous operation,

  • Allocate a inside transferSync.
  • Run Atomic.wait() at the main thread.
  • Run the calculation at the corresponding processor on the main thread.
  • Pass the data into the received .
  • Unfreeze the thread with Atomic.notify().
Backlinks0

No backlinks found.