2015-04-16 20:06:57 +08:00
|
|
|
// This file is part of libfringe, a low-level green threading library.
|
2016-03-22 15:25:23 +08:00
|
|
|
// Copyright (c) edef <edef@edef.eu>
|
2015-04-16 18:08:44 +08:00
|
|
|
// See the LICENSE file included in this distribution.
|
2015-08-25 10:50:50 +08:00
|
|
|
pub use self::imp::*;
|
2015-04-16 14:30:10 +08:00
|
|
|
|
2015-08-25 10:50:50 +08:00
|
|
|
#[cfg(feature = "valgrind")]
|
2016-01-04 22:32:03 +08:00
|
|
|
#[path = "valgrind.rs"]
|
2015-08-25 10:50:50 +08:00
|
|
|
mod imp;
|
2015-04-16 14:30:10 +08:00
|
|
|
|
2015-08-25 10:50:50 +08:00
|
|
|
#[cfg(not(feature = "valgrind"))]
|
|
|
|
mod imp {
|
|
|
|
use stack;
|
|
|
|
#[derive(Debug)]
|
|
|
|
pub struct StackId;
|
|
|
|
/// No-op since no valgrind
|
|
|
|
impl StackId {
|
|
|
|
pub unsafe fn register<Stack: stack::Stack>(_stack: &mut Stack) -> StackId {
|
|
|
|
StackId
|
2015-04-16 14:30:10 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|