File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -124,7 +124,7 @@ jobs:
124
124
git config --global --add safe.directory /__w/CCF/CCF
125
125
mkdir build
126
126
cd build
127
- cmake -GNinja -DCMAKE_BUILD_TYPE=Debug ..
127
+ cmake -GNinja -DCMAKE_BUILD_TYPE=Debug -DSAN=ON -DUSE_SNMALLOC=OFF ..
128
128
ninja
129
129
shell : bash
130
130
Original file line number Diff line number Diff line change @@ -422,6 +422,7 @@ namespace ccf
422
422
process_launcher.register_message_handlers (
423
423
buffer_processor.get_dispatcher ());
424
424
425
+ uv_work_t work_handle;
425
426
{
426
427
// provide regular ticks to the enclave
427
428
const asynchost::Ticker ticker (config.tick_interval , writer_factory);
@@ -1007,6 +1008,13 @@ namespace ccf
1007
1008
threads.emplace_back (enclave_thread_start, i);
1008
1009
}
1009
1010
1011
+ auto do_work = [](uv_work_t * handle) {
1012
+ (void )handle;
1013
+ std::this_thread::sleep_for (5s);
1014
+ LOG_INFO_FMT (" Accessing global resources" );
1015
+ };
1016
+ uv_queue_work (uv_default_loop (), &work_handle, do_work, nullptr );
1017
+
1010
1018
LOG_INFO_FMT (" Entering event loop" );
1011
1019
uv_run (uv_default_loop (), UV_RUN_DEFAULT);
1012
1020
LOG_INFO_FMT (" Exited event loop" );
You can’t perform that action at this time.
0 commit comments