aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2025-06-05 10:13:28 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2025-06-05 10:13:28 +0200
commit73efecca42dbc44200e797e02f8c1e24fcff26ef (patch)
tree46969fed9d5c09a4164257dace56a71cad9092ab /README.md
parent2a8e7aeeef99161b6f0378ac14e297c23ca6227b (diff)
downloademscripten-tutorial-73efecca42dbc44200e797e02f8c1e24fcff26ef.tar.gz
emscripten-tutorial-73efecca42dbc44200e797e02f8c1e24fcff26ef.zip
Added two more examples
Diffstat (limited to '')
-rw-r--r--README.md12
1 files changed, 12 insertions, 0 deletions
diff --git a/README.md b/README.md
index 4326298..582cd4d 100644
--- a/README.md
+++ b/README.md
@@ -24,6 +24,9 @@ scripts, for convenience:
24 [localhost:8080](http://localhost:8080) running an example web page 24 [localhost:8080](http://localhost:8080) running an example web page
25 (require darkhttpd, see below). 25 (require darkhttpd, see below).
26 26
27If one of the `run-*` scripts is missing, it means that that example
28is only meant to run in Node.js, or only as a script in a web page.
29
27The examples have been tested only on Linux, but should work on any 30The examples have been tested only on Linux, but should work on any
28UNIX system, and should be easy to adapt to Windows or other OSes. 31UNIX system, and should be easy to adapt to Windows or other OSes.
29Pull requests are welcome. 32Pull requests are welcome.
@@ -63,3 +66,12 @@ In `03_threads` we build a more complicated example based on
63[pthreads](https://en.wikipedia.org/wiki/Pthreads). To run this 66[pthreads](https://en.wikipedia.org/wiki/Pthreads). To run this
64example, the web server has to be configured to provide the correct 67example, the web server has to be configured to provide the correct
65`Cross-Origin-*` headers, see `03_threads/run-server.sh` for details. 68`Cross-Origin-*` headers, see `03_threads/run-server.sh` for details.
69
70## 4. Don't block the main thread
71
72In `04_no_block` we avoid our calculations blocking the main browser
73thread by using a web worker.
74
75## 5. Callback functions
76
77In `05_callback` the example is extended to include a callback function.

Generated with cgit - Back to sebastiano.tronto.net