heck
8cb697c31d
add logging to Session constructor
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
b9f9bb6cc0
standards: uniform init always
2 years ago
heck
3bcb00ab58
Fix: call register_sync_callbacks() ONLY in sync thread.
No other session/thread will have sync callbacks registered.
This is essentially reverting a change that has been done for 3.0, but i think it was wrong
3 years ago
heck
972e975374
Fix: add 'PEP_KEY_IMPORTED' to NOT 'errors'
3 years ago
heck
c3a8a75c48
Corrected order of initialization
The C++ standards requires the order of init to be the order of declaration
3 years ago
heck
e4ee4a9852
Adapter class: formatting and code style
3 years ago
heck
a3037609a2
Adapter class: superflous constructs
3 years ago
heck
6b76d9bf8b
Adapter class: dont call static method on object
3 years ago
heck
a9d01f54b1
Adapter class: missing initialization
3 years ago
heck
f5b82bd7dc
Adapter class: unused includes
3 years ago
heck
497afdfb2b
Update includes
3 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
0de8502f8f
local var never used
4 years ago
heck
b0a57da9fa
just cosmetics (less error prone to read, makes you think about the missing else case)
4 years ago
heck
6cdfe86402
non-local single char named vars are not that handy.
4 years ago
Volker Birk
aa9a3c7e77
auto call release() on platforms where this is supported.
test messages and notifications.
5 years ago
Volker Birk
0260722d6c
use .joinable() instead of pointer value to detect if sync is running
5 years ago
Volker Birk
f210495d67
implementing ENGINE-781
5 years ago
Volker Birk
e658bbaf0e
back() and front() have defined behaviour now when queue is empty
5 years ago
Volker Birk
dc3d0d9e14
Windoze needs this
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
3a8b3f4517
ignore PEP_STATEMACHINE_CANNOT_SEND
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
heck
723b6b1829
Possible fix for "shutdown problem".
Tests added in last commit (startup/shutdown repeatedly) now seem to work better, but still fail on iteration 61, with a different problem.
6 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
825c69b726
FIXME!
6 years ago
Thomas
c6e9fe4cbf
*oops* Pt. II
6 years ago
Volker Birk
23f50511a0
*oops*
6 years ago
Volker Birk
4b9fdbba02
clean shutdown in sync_thread
6 years ago
Volker Birk
c6352281f8
do not join() if on sync thread
6 years ago
Thomas
e5862ded4e
Delete sync thread if shutdown event is injected
6 years ago
Volker Birk
01d9b71e59
is_sync_running() added
6 years ago
Volker Birk
b1c5cf6a1a
synchronously and immediate shutdown
6 years ago
Volker Birk
3ee86779f0
...
6 years ago
Thomas
191bb8b5e4
For debugging purposes
7 years ago
Roker
05e7a8fa90
try_pop_front() returns true on success, not on timeout! Thanks, thomas!
7 years ago
Roker
82cb8717f6
_retrieve_next_sync_event() now uses try_pop_front() instead of the manual timeout gebastel before... :-)
7 years ago