mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
add linux sampler
This commit is contained in:
parent
0cb87cca13
commit
7bc29205ef
11 changed files with 263 additions and 9 deletions
|
@ -12,6 +12,22 @@ pub trait Sampler: Send {
|
|||
fn suspend_and_sample_thread(&self) -> Result<NativeStack, ()>;
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
pub struct DummySampler;
|
||||
|
||||
impl DummySampler {
|
||||
#[allow(dead_code)]
|
||||
pub fn new() -> Box<Sampler> {
|
||||
Box::new(DummySampler)
|
||||
}
|
||||
}
|
||||
|
||||
impl Sampler for DummySampler {
|
||||
fn suspend_and_sample_thread(&self) -> Result<NativeStack, ()> {
|
||||
Err(())
|
||||
}
|
||||
}
|
||||
|
||||
// Several types in this file are currently not used in a Linux or Windows build.
|
||||
#[allow(dead_code)]
|
||||
pub type Address = *const libc::uint8_t;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue