mirror of
https://github.com/servo/servo
synced 2026-05-05 06:32:13 +02:00
This PR introduces a new storage coordination thread, intended to serve as the central point for managing all current and future storage endpoints in Servo. In addition to the new coordination thread, this PR also lays the infrastructure required to develop a parallel, next-generation IndexedDB implementation under the indexeddb_next feature flag living on a separate branch. Testing: Unit and WPT tests continue to pass --------- Signed-off-by: Jan Varga <jvarga@igalia.com>
23 lines
823 B
Rust
23 lines
823 B
Rust
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
|
|
|
|
use base::generic_channel::{self, GenericSender};
|
|
use storage::ClientStorageThreadFactory;
|
|
use storage_traits::client_storage::ClientStorageThreadMessage;
|
|
|
|
#[test]
|
|
fn test_exit() {
|
|
let thread: GenericSender<ClientStorageThreadMessage> = ClientStorageThreadFactory::new(None);
|
|
|
|
let (sender, receiver) = generic_channel::channel().unwrap();
|
|
thread
|
|
.send(ClientStorageThreadMessage::Exit(sender))
|
|
.unwrap();
|
|
receiver.recv().unwrap();
|
|
|
|
// Workaround for https://github.com/servo/servo/issues/32912
|
|
#[cfg(windows)]
|
|
std::thread::sleep(std::time::Duration::from_millis(1000));
|
|
}
|