Class GilRelease#
Defined in File GilRelease.h
Inheritance Relationships#
Base Type#
public Karana::Models::KModel< GilRelease >(Template Class KModel)
Class Documentation#
-
class GilRelease : public Karana::Models::KModel<GilRelease>#
Temporarily releases the GIL so that other threads can do Python work.
Public Functions
-
GilRelease(std::string_view name, const kc::ks_ptr<kd::ModelManager> &mm)#
GilRelease constructor. The constructor is not meant to be called directly. Please use the create(…) method instead to create an instance.
- Parameters:
name – The name of the model.
mm – The ModelManager to register this model with.
-
~GilRelease()#
Destructor for GilRelease.
-
void postHop(const km::Ktime &t, const km::Vec &x)#
Temporarily release the GIL so other threads can do work.
- Parameters:
t – Current time. Not used.
x – Current state. Not used.
Public Static Functions
-
static kc::ks_ptr<GilRelease> create(std::string_view name, const kc::ks_ptr<kd::ModelManager> &mm)#
Constructor.
- Parameters:
name – The name of the model.
mm – The ModelManager to register this model with.
- Returns:
A ks_ptr to the newly created instance of the GilRelease model.
-
GilRelease(std::string_view name, const kc::ks_ptr<kd::ModelManager> &mm)#