heck
1cb9429bcb
Module Adapter - make static adapter_manages_sync_thread()
2 years ago
heck
6c8ad91cc1
Module Adapter - Improve internal terminology only
2 years ago
heck
d4bf1c1a5d
rewrite session creation function _new() / register all callbacks at session creation
remove the possibility to change SYNC/ASYNC handling of sync events at runtime.
It has to be defined at Session::initialize() and cannot be changed anymore. This is not needed.
2 years ago
heck
7651712670
create sections for separate concerns Session/Sync/Passphrase/Error
to be refactored into own modules.
2 years ago
heck
7d8accd983
formatting and comments only
2 years ago
heck
7b1f8eb90a
move err-handling code to bottom
should go into own module later
2 years ago
heck
e4ee4a9852
Adapter class: formatting and code style
3 years ago
heck
32b3e88a79
Adapter class: make explicitly non-copyable
3 years ago
heck
816972b803
Doc: Add todo
3 years ago
heck
e7a8426ed4
Doc: improved for class Adapter::Session
4 years ago
heck
080076582e
API: session(init/release) removed.
Before using the static object Adapter::session, initialize it using session.initialize().
Release it using session.release().
4 years ago
heck
9b922a39dc
move start_sync() and stop_sync() from CallbackDispatcher to Adapter.hh
4 years ago
heck
0517b9be69
Add Adapter::inject_sync_shutdown() to be used if _adapter_manages_sync_thread
4 years ago
heck
9eb0b4c032
_inject_sync_event: undo the renaming for now.
4 years ago
heck
1a14b1a205
Adapter.*: Add Sync/Async switchable Event execution. rework needed, higher level API, as a class.
4 years ago
heck
ef5bc0a7c0
LIB-13: Standard project layout (src dir added)
4 years ago
heck
9d810df05e
LIB-13: "Define Coding Standards And Project Structure" - Reformat (almost) the whole codebase using clang-format.
4 years ago
heck
c732f24c48
ALL FILES - replace #pragma once with standard include guards (and make sure license header)
4 years ago
heck
4766b4c07b
some formatting only, (cant we agree on softwrapping please, line width on my MBP 13" is around 2000)
5 years ago
Volker Birk
aa9a3c7e77
auto call release() on platforms where this is supported.
test messages and notifications.
5 years ago
Volker Birk
f210495d67
implementing ENGINE-781
5 years ago
Volker Birk
ebae3dee3e
when in shutdown exit this loop
5 years ago
Volker Birk
d4d114ff15
JSON adapter needs this
5 years ago
Volker Birk
87829c5dc4
C++ 11, options for clang and gcc
5 years ago
heck
b7d8c06d79
Move pEpLog() macro to new header pEpLog.hh
5 years ago
heck
a62e51bec8
Backing out all commits after 159:3275abf4bb79
5 years ago
heck
15a20035eb
Improved Logging, prefixed with thread_id now. (DEBUG build only)
added pEpErr() (DEBUG and RELEASE build)
non-local vars names with len == 1 are not handy at all
5 years ago
heck
5d626151d3
More Logging (in DEBUG build)
5 years ago
Volker Birk
4ae7614224
adding declaration of _inject_sync_event
5 years ago
Thomas
146f71ab89
Add include (won't compile on Windows otherwise)
5 years ago
heck
2a78dab74f
Added Build var DEBUG for release/debug builds. (-g vs NDEBUG)
Added Logging macro that compiles away to nothing when DEBUG=0
6 years ago
Volker Birk
01d9b71e59
is_sync_running() added
6 years ago
Volker Birk
c25feca938
startup() may throw RuntimeError
6 years ago
Roker
02f6123646
LAS-2 I hope that default template argument would make modern clang++ happy.
7 years ago
Roker
52530e2a33
remove "locked_queue" and <thread> from public Adapter.hh API, because not necessary there.
7 years ago
Roker
8d92ae2efd
don't pollute the global namespace with "using namespace std;" in the header. Adds some comments for documentation.
7 years ago
Volker Birk
47d8cfbd97
simplify
7 years ago
Volker Birk
e99d28569c
extra callbacks for sync thread
7 years ago
Roker
e825cb3b34
general template first, specialization second.
7 years ago
Volker Birk
89ca327f03
...
7 years ago
Volker Birk
6bbe1edff7
...
7 years ago
Volker Birk
400e23642a
startup and shutdown in sync thread
7 years ago
Volker Birk
2e7a000184
callbacks
7 years ago
Volker Birk
8e686d6189
eof
7 years ago
Volker Birk
d17f3a7f45
simplify and switch to _Thrd_sleep() on Windoze
7 years ago
Volker Birk
944fb89e41
somewhat cleaner
7 years ago
Volker Birk
0293edca01
why a class anymore
7 years ago
Volker Birk
ae10e60873
nicer syntax
7 years ago
Volker Birk
7388de15af
default
7 years ago
Volker Birk
20e02ec6ad
remove unnecessary vtable
7 years ago