Mercury Currency Engine
Public Member Functions | List of all members
mce::scheduler::parkable_notify Struct Reference

#include <scheduler.hpp>

Inheritance diagram for mce::scheduler::parkable_notify:
Inheritance graph
[legend]
Collaboration diagram for mce::scheduler::parkable_notify:
Collaboration graph
[legend]

Public Member Functions

template<typename... As>
 parkable_notify (parkable *p, As &&... as)
 
 operator parkable * ()
 

Detailed Description

A generic interface to store a function to unblock a parkable. void* m is
implementation specific memory (IE, the implementation can pass whatever it wants here).

Using this in a blocked queue allows abstracting operation specific behavior to a callback.

This object is convertable to it's associated parkable*, allowing searches for a specific operation if necessary.


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