|
NGen
|
#include <multithreading.hpp>
Collaboration diagram for multithreading::cache_slot< T >:Public Member Functions | |
| cache_slot ()=default | |
| cache_slot (cache_slot const &)=delete | |
| cache_slot (cache_slot &&)=delete | |
| std::variant< std::shared_ptr< T >, failed_fill > | get () |
| void | fill (std::shared_ptr< T > buffer_ptr, bool immediate_use) |
| void | fail () |
Private Types | |
| enum | STATE : char { EMPTY =0 , FILLED =1 , HOT =2 , ERROR =3 } |
Private Attributes | |
| std::shared_ptr< T > | ptr_ = nullptr |
| std::atomic< int > | state_ = STATE::EMPTY |
|
private |
|
default |
|
delete |
|
delete |
| void multithreading::cache_slot< T >::fail | ( | ) |
| void multithreading::cache_slot< T >::fill | ( | std::shared_ptr< T > | buffer_ptr, |
| bool | immediate_use ) |
| auto multithreading::cache_slot< T >::get | ( | ) |
|
private |
|
private |