Skip to content
Merged
Show file tree
Hide file tree
Changes from 16 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
PROJECT_DIR: ${{ github.workspace }}
run: sh .github/workflows/ci.sh
- name: Run preemptive tests
if: ${{ contains(matrix.os, 'ubuntu') && !contains(matrix.target, 'loongarch64') || contains(matrix.os, 'macos') }}
if: ${{ !contains(matrix.target, 'loongarch64') }}
env:
CHANNEL: ${{ matrix.channel }}
CROSS: ${{ !startsWith(matrix.target, 'x86_64') && contains(matrix.target, 'linux') && '1' || '0' }}
Expand Down
2 changes: 1 addition & 1 deletion core/src/coroutine/korosensei.rs
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ where
priority,
};
cfg_if::cfg_if! {
if #[cfg(all(unix, feature = "preemptive"))] {
if #[cfg(feature = "preemptive")] {
let type_id = std::any::TypeId::of::<()>();
if std::any::TypeId::of::<Param>() == type_id && std::any::TypeId::of::<Yield>() == type_id {
co.add_listener(crate::monitor::MonitorListener);
Expand Down
2 changes: 1 addition & 1 deletion core/src/coroutine/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ where
}
}

#[cfg(all(test, not(all(unix, feature = "preemptive"))))]
#[cfg(all(test, not(feature = "preemptive")))]
mod tests {
use super::*;
use crate::coroutine::suspender::Suspender;
Expand Down
2 changes: 1 addition & 1 deletion core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ pub mod config;
#[doc = include_str!("../docs/en/coroutine.md")]
pub mod coroutine;

#[cfg(all(unix, feature = "preemptive"))]
#[cfg(feature = "preemptive")]
#[doc = include_str!("../docs/en/monitor.md")]
mod monitor;

Expand Down
Loading