Skip to content
This repository was archived by the owner on Jul 10, 2023. It is now read-only.
This repository was archived by the owner on Jul 10, 2023. It is now read-only.

Supporting devices that require code to run on the main thread #52

Closed

Description

@asajeffrey

Currently the API has no concept of the "main thread" of an application, and assumes that VRServiceManager::new() and VRServiceManager::register_defaults() can be safely called from any thread (in servo, they're called from the WebVRThread). This has a mismatch with devices (such as MagicLeap) which have a main thread, and where the APIs to access the device capabilities aren't thread-safe.

Activity

  1. changed the title [-]Supporting devices that require initialization on the main thread[/-] [+]Supporting devices that require code to run on the main thread[/+] on Feb 25, 2019
  2. asajeffrey commented on Feb 25, 2019

    @asajeffrey
    Author

    This is also needed when rendering to a window on MacOS, which requires windows to live on the main thread. https://github.com/asajeffrey/rust-webvr/blob/glwindow/rust-webvr/src/api/glwindow/heartbeat.rs

  3. added a commit that references this issue on Mar 5, 2019
    19fb68b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions