Uni20
Asynchronous tensor and runtime library.
Loading...
Searching...
No Matches
Public Member Functions | List of all members
uni20::async::ScopedScheduler Class Reference

RAII helper that temporarily overrides the global scheduler. More...

#include <debug_scheduler.hpp>

Public Member Functions

 ScopedScheduler (IAsyncScheduler *sched)
 Install a temporary global scheduler until destruction.
 
 ~ScopedScheduler ()
 Restore the previous global scheduler.
 

Detailed Description

RAII helper that temporarily overrides the global scheduler.

Constructor & Destructor Documentation

◆ ScopedScheduler()

uni20::async::ScopedScheduler::ScopedScheduler ( IAsyncScheduler *  sched)
inlineexplicit

Install a temporary global scheduler until destruction.

Parameters
schedScheduler pointer to activate.

◆ ~ScopedScheduler()

uni20::async::ScopedScheduler::~ScopedScheduler ( )
inline

Restore the previous global scheduler.


The documentation for this class was generated from the following file: