Browse Source

some formatting only, (cant we agree on softwrapping please, line width on my MBP 13" is around 2000)

pull/1/head
heck 5 years ago
parent
commit
4766b4c07b
  1. 9
      Adapter.hxx

9
Adapter.hxx

@ -24,7 +24,8 @@ namespace pEp {
static std::exception_ptr _ex; static std::exception_ptr _ex;
static bool register_done = false; static bool register_done = false;
template< class T > void sync_thread(T *obj, function< void(T *) > _startup, function< void(T *) > _shutdown) template< class T >
void sync_thread(T *obj, function< void(T *) > _startup, function< void(T *) > _shutdown)
{ {
_ex = nullptr; _ex = nullptr;
assert(_messageToSend); assert(_messageToSend);
@ -59,13 +60,13 @@ namespace pEp {
_shutdown(obj); _shutdown(obj);
} }
template< class T > void startup( template< class T >
void startup(
messageToSend_t messageToSend, messageToSend_t messageToSend,
notifyHandshake_t notifyHandshake, notifyHandshake_t notifyHandshake,
T *obj, T *obj,
function< void(T *) > _startup, function< void(T *) > _startup,
function< void(T *) > _shutdown function< void(T *) > _shutdown)
)
{ {
if (messageToSend) if (messageToSend)
_messageToSend = messageToSend; _messageToSend = messageToSend;

Loading…
Cancel
Save