Implement thread#t_yield()

This commit is contained in:
Quentin Legot
2023-03-11 14:48:56 +01:00
parent e1283c9c42
commit 1f54ed35db
5 changed files with 18 additions and 12 deletions

View File

@ -1,4 +1,4 @@
#[cfg(not(target_os = "windows"))]
use std::mem::MaybeUninit;
/// Safe wrapper for ucontext_t struct of linux-gnu libc
@ -54,7 +54,8 @@ impl UContextT {
}
#[cfg(target_os = "windows")]
#[cfg(target_os = "windows")]
#[allow(unused)]
impl UContextT {
pub fn new() -> Self {