Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[mono] add internal WebWorkerEventLoop utility class #84492

Commits on Apr 18, 2023

  1. [mono] add internal WebWorkerEventLoop utility class

    Provides two pieces of functionality:
    
    1. A keepalive token that can be used to prevent the current POSIX
    thread from terminating when it returns from its thread start
    function, or from an invocation from the JS event loop.  When the last
    keepalive token is destroyed (assuming Emscripten isn't keeping the
    thread alive for other reasons) it will terminate as if by calling
    `pthread_exit` and the webworker will be made available to other
    threads
    
    2. A `HasUnsettledInteropPromises` property that peeks
    `_js_owned_object_table` to see if there are any promises created by
    the interop subsystem that have not been fulfilled or rejected yet.
    lambdageek committed Apr 18, 2023
    Configuration menu
    Copy the full SHA
    84fb611 View commit details
    Browse the repository at this point in the history
  2. Use a per-thread unsettled promise count

    for mono_wasm_eventloop_has_unsettled_interop_promises we
    can't use the _js_owned_object_table size because it contains
    other interop objects, not just promises
    lambdageek committed Apr 18, 2023
    Configuration menu
    Copy the full SHA
    9b8297f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    fb3f7ab View commit details
    Browse the repository at this point in the history

Commits on Apr 19, 2023

  1. Configuration menu
    Copy the full SHA
    8f23379 View commit details
    Browse the repository at this point in the history
  2. fixup docs

    lambdageek committed Apr 19, 2023
    Configuration menu
    Copy the full SHA
    c0c1eed View commit details
    Browse the repository at this point in the history