make tracing API functions internal
This commit is contained in:
parent
f2429c212e
commit
b3e13cc6de
@ -239,7 +239,7 @@ pub(crate) fn executor_idle(executor: &SyncExecutor) {
|
|||||||
/// # Returns
|
/// # Returns
|
||||||
/// An iterator that yields `TaskRef` items for each task
|
/// An iterator that yields `TaskRef` items for each task
|
||||||
#[cfg(feature = "trace")]
|
#[cfg(feature = "trace")]
|
||||||
pub fn get_all_active_tasks() -> impl Iterator<Item = TaskRef> + 'static {
|
fn get_all_active_tasks() -> impl Iterator<Item = TaskRef> + 'static {
|
||||||
struct TaskIterator<'a> {
|
struct TaskIterator<'a> {
|
||||||
tracker: &'a TaskTracker,
|
tracker: &'a TaskTracker,
|
||||||
current: *mut TaskHeader,
|
current: *mut TaskHeader,
|
||||||
@ -285,7 +285,7 @@ pub fn count_active_tasks() -> usize {
|
|||||||
|
|
||||||
/// Perform an action on each active task
|
/// Perform an action on each active task
|
||||||
#[cfg(feature = "trace")]
|
#[cfg(feature = "trace")]
|
||||||
pub fn with_all_active_tasks<F>(f: F)
|
fn with_all_active_tasks<F>(f: F)
|
||||||
where
|
where
|
||||||
F: FnMut(TaskRef),
|
F: FnMut(TaskRef),
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user