-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Centralize locking primitives in wgpu-types
#9780
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
base: trunk
Are you sure you want to change the base?
Changes from all commits
831e8b6
a580e8e
75a41b8
21f13f0
9c84405
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,7 +5,7 @@ | |
|
|
||
| use std::{future::Future, pin::Pin}; | ||
|
|
||
| use parking_lot::Mutex; | ||
| use wgpu_types::sync::Mutex; | ||
|
|
||
| use crate::{ | ||
| config::GpuTestConfiguration, params::TestInfo, report::AdapterReport, run::execute_test, | ||
|
|
@@ -87,7 +87,8 @@ impl NativeTest { | |
| } | ||
|
|
||
| #[doc(hidden)] | ||
| pub static TEST_LIST: Mutex<Vec<crate::GpuTestConfiguration>> = Mutex::new(Vec::new()); | ||
| pub static TEST_LIST: Mutex<Vec<crate::GpuTestConfiguration>> = | ||
| Mutex::const_new(wgpu_types::sync::RawMutex::new(), Vec::new()); | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
|
|
||
| /// Return value for the main function. | ||
| pub type MainResult = anyhow::Result<()>; | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This dependency was previously included in triplicate for wasm, not wasm, and for tests. Moved for the sake of clarity.