We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4a957b3 commit 99fbd1bCopy full SHA for 99fbd1b
src/libstd/sys/sgx/time.rs
@@ -25,6 +25,14 @@ impl Instant {
25
pub fn checked_sub_duration(&self, other: &Duration) -> Option<Instant> {
26
Some(Instant(self.0.checked_sub(*other)?))
27
}
28
+
29
+ pub fn actually_monotonic() -> bool {
30
+ false
31
+ }
32
33
+ pub const fn zero() -> Instant {
34
+ Instant(Duration::from_secs(0))
35
36
37
38
impl SystemTime {
src/libstd/sys/sgx/waitqueue.rs
@@ -456,6 +456,7 @@ mod spin_mutex {
456
457
458
459
+ /// Lock the Mutex or return false.
460
pub macro try_lock_or_false {
461
($e:expr) => {
462
if let Some(v) = $e.try_lock() {
0 commit comments