C/C++ API Reference
Loading...
Searching...
No Matches
Configuration

Overview

Compile-time configuration.

Learn more: Configuration

Macros

#define PW_ASYNC2_DEBUG_WAIT_REASON   1
 
#define PW_ASYNC2_LOG_LEVEL   PW_LOG_LEVEL_INFO
 The log level to use for this module. Logs below this level are omitted.
 

Macro Definition Documentation

◆ PW_ASYNC2_DEBUG_WAIT_REASON

#define PW_ASYNC2_DEBUG_WAIT_REASON   1

Controls how the wait_reason_string argument to PW_ASYNC_STORE_WAKER and PW_ASYNC_CLONE_WAKER is used. If enabled, wait reasons are stored within their wakers, allowing easier debugging of sleeping tasks.

Enabled by default.

Note: The module dependencies of pw_async2 vary based on on the value of PW_ASYNC2_DEBUG_WAIT_REASON. When building pw_async2 with Bazel, you should NOT set this module config value directly. Instead, tell the build system which value you wish to select by adding one of the following constraint_values to the target platform:

  • @pigweed//pw_async2:debug_wait_reason_disabled (default)
  • @pigweed//pw_async2:debug_wait_reason_enabled