foobar2000 SDK  2015-08-03
Data Structures | Namespaces | Typedefs | Functions
completion_notify.h File Reference

Go to the source code of this file.

Data Structures

class  completion_notify
 
class  completion_notify_dummy
 
class  completion_notify_impl< t_receiver >
 
class  completion_notify_orphanable
 
class  completion_notify_receiver
 

Namespaces

 fb2k
 

Typedefs

typedef service_nnptr_t< completion_notifycompletion_notify_nnptr
 
typedef service_nnptr_t< completion_notify_orphanablecompletion_notify_orphanable_nnptr
 
typedef service_ptr_t< completion_notify_orphanablecompletion_notify_orphanable_ptr
 
typedef service_ptr_t< completion_notifycompletion_notify_ptr
 
typedef std::function< void(unsigned)> fb2k::completionNotifyFunc_t
 

Functions

template<typename t_receiver >
service_nnptr_t< completion_notify_orphanablecompletion_notify_create (t_receiver *p_receiver, unsigned p_taskid)
 
completion_notify::ptr fb2k::makeCompletionNotify (completionNotifyFunc_t)
 

Typedef Documentation

Definition at line 58 of file completion_notify.h.

Definition at line 59 of file completion_notify.h.

Definition at line 57 of file completion_notify.h.

Definition at line 56 of file completion_notify.h.

Function Documentation

template<typename t_receiver >
service_nnptr_t<completion_notify_orphanable> completion_notify_create ( t_receiver *  p_receiver,
unsigned  p_taskid 
)

Definition at line 50 of file completion_notify.h.

50  {
52  instance->setup(p_receiver,p_taskid);
53  return instance;
54 }
Template implementing reference-counting features of service_base. Intended for dynamic instantiation...
Definition: service_impl.h:4
Autopointer class to be used with all services. Manages reference counter calls behind-the-scenes. This assumes that the pointers are valid all the time (can&#39;t point to null). Mainly intended to be used for scenarios where null pointers are not valid and relevant code should crash ASAP if somebody passes invalid pointers around. You want to use service_ptr_t<> rather than service_nnptr_t<> most of the time.
Definition: service.h:51