From a5a194244a672b7a3becc205a627d89782fe756b Mon Sep 17 00:00:00 2001 From: Anthony Date: Sat, 28 Sep 2024 22:01:16 -0500 Subject: [PATCH] add build (code) artifacts to main --- azure/docsite/api/api-ts-library/index.html | 4 +- azure/docsite/api/api-ts-modules/index.html | 2 +- .../examples/examples-divcon/index.html | 50 ++++++++- .../examples/examples-multi-io/index.html | 2 +- .../examples/examples-overview/index.html | 22 ++-- .../gettingstarted/installation/index.html | 7 +- azure/docsite/index.html | 4 +- azure/docsite/more/building/index.html | 2 +- azure/docsite/search/search_index.json | 2 +- azure/docsite/sitemap.xml | 78 +++++++------- azure/docsite/sitemap.xml.gz | Bin 504 -> 504 bytes azure/examples/dist/divcon/index.html | 4 +- azure/examples/divcon/index.html | 6 +- azure/examples/lib/out/twrlibex.js | 97 ++++++++++++++++++ azure/examples/pong/out/jsEventsLib.js | 90 ++++++++++++++++ azure/examples/tests-audio/out/clearIODiv.js | 22 ++++ 16 files changed, 325 insertions(+), 67 deletions(-) create mode 100644 azure/examples/lib/out/twrlibex.js create mode 100644 azure/examples/pong/out/jsEventsLib.js create mode 100644 azure/examples/tests-audio/out/clearIODiv.js diff --git a/azure/docsite/api/api-ts-library/index.html b/azure/docsite/api/api-ts-library/index.html index 6110a82e..fa57b8a8 100644 --- a/azure/docsite/api/api-ts-library/index.html +++ b/azure/docsite/api/api-ts-library/index.html @@ -1883,7 +1883,7 @@

twr-wasm Libraries

There are two kinds of Libraries:

Basic Steps

twr-wasm Libraries support both twrWasmModule and twrWasmModuleAsync. That is, when you create a twrLibrary, it will function with either type of module. In many cases no extra work is needed for the twrWasmModuleAsync, but in some cases, extra code is needed.

@@ -2153,7 +2153,7 @@

interfaceName

diff --git a/azure/docsite/api/api-ts-modules/index.html b/azure/docsite/api/api-ts-modules/index.html index 92f17576..7a97c30e 100644 --- a/azure/docsite/api/api-ts-modules/index.html +++ b/azure/docsite/api/api-ts-modules/index.html @@ -1726,7 +1726,7 @@

About twrWasmModule

const mod = new twrWasmModule();

About twrWasmModuleAsync

-

class twrWasmModuleAsync allows you to integrate WebAssembly C/C++ code into your Web Page that uses a CLI pattern or code that blocks. For example, with twrWasmModuleAsync your C/C++ code can call a synchronous function for keyboard input (that blocks until the user has entered the keyboard input). Or your C/C++ code can sleep or otherwise block. This is the pattern that is used by many standard C library functions - fread, etc.

+

class twrWasmModuleAsync allows you to integrate WebAssembly C/C++ code into your Web Page that uses a Read-Eval-Print Loop (REPL) pattern, a CLI pattern or code that blocks. For example, with twrWasmModuleAsync your C/C++ code can call a synchronous function for keyboard input (that blocks until the user has entered the keyboard input). Or your C/C++ code can sleep or otherwise block. This is the pattern that is used by many standard C library functions - fread, etc.

class twrWasmModuleAsync creates a WorkerThread that runs in parallel to the JavaScript main thread. This Worker thread executes your C/C++ code, and proxies functionality that needs to execute in the JavaScript main thread via remote procedure calls. This allows the JavaScript main thread to await on a blocking callC in your JavaScript main thread.

The Async part of the twrWasmModuleAsync name refers to the property of twrWasmModuleAsync that makes your synchronous C/C++ code asynchronous.

The APIs in class twrWasmModuleAsync are identical to class twrWasmModule, except that certain functions use the async keyword and thus need to be called with await. This happens whenever the function needs to cross the JavaScript main thread and the Worker thread boundary. For example: callC or malloc.

diff --git a/azure/docsite/examples/examples-divcon/index.html b/azure/docsite/examples/examples-divcon/index.html index 38b3af8a..4e11a2df 100644 --- a/azure/docsite/examples/examples-divcon/index.html +++ b/azure/docsite/examples/examples-divcon/index.html @@ -6,7 +6,7 @@ - + @@ -723,6 +723,24 @@