emergency_handlers: increase max handlers to 256

in the ttcn3_dut application many "virtuaL" UE instances are created and
destroyed when executing the tests.

With the previous limit of 12 handlers the application stopped after
a few tests. With the limit raised to 256 we should be able to run
all white_listed TTCN3 tests for the UE without problems.

This fixes #3886
This commit is contained in:
Andre Puschmann 2022-02-18 11:07:16 +01:00
parent 28493ec553
commit acecb1c303
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ struct handler_instance {
// Handlers are added in a thread safe manner without using locks to avoid possible issues if a signal is emitted while // Handlers are added in a thread safe manner without using locks to avoid possible issues if a signal is emitted while
// modifying the callback array. // modifying the callback array.
static constexpr unsigned max_handlers = 12; static constexpr unsigned max_handlers = 256;
static handler_instance registered_handlers[max_handlers]; static handler_instance registered_handlers[max_handlers];
static std::atomic<unsigned> num_handlers; static std::atomic<unsigned> num_handlers;