CoroutineWaitList.hpp

This File On Github
Ask A Question

API: latest
module: oatpp
#include "oatpp/core/async/CoroutineWaitList.hpp"

CoroutineWaitList

List of oatpp::async::Coroutine waiting to be notified.

namespace oatpp { namespace async { 
  class CoroutineWaitList {}
}}

Methods

Return Type Name Summary
[none] CoroutineWaitList Multiple implementations:
  1. Deleted copy-constructor.
  2. Default constructor.
  3. Move-constructor.
[none] ~CoroutineWaitList Virtual destructor.
void notifyAllAndClear Put all coroutines back to its processors.

CoroutineWaitList::CoroutineWaitList

  1. Deleted copy-constructor.
    • @param other
    CoroutineWaitList(const CoroutineWaitList&) = delete
    
  2. Default constructor.
    CoroutineWaitList() = default
    
  3. Move-constructor.
    • @param other
    CoroutineWaitList(CoroutineWaitList&& other)
    

CoroutineWaitList::~CoroutineWaitList

Virtual destructor. Will call notifyAllAndClear().

virtual ~CoroutineWaitList()

CoroutineWaitList::notifyAllAndClear

Put all coroutines back to its processors.

void notifyAllAndClear()

CoroutineWaitList::Listener

Listener for new items in the wait-list.

namespace oatpp { namespace async { 
  class CoroutineWaitList {
    class Listener {}
  };
}}

Methods

Return Type Name Summary
[none] ~Listener Default virtual destructor.
void onNewItem Called when new item is pushed to the list.

CoroutineWaitList::Listener::~Listener

Default virtual destructor.

virtual ~Listener() = default

CoroutineWaitList::Listener::onNewItem

Called when new item is pushed to the list.

  • @param list - list where new item was pushed to.

virtual void onNewItem(CoroutineWaitList& list) = 0