Zth (libzth)
Loading...
Searching...
No Matches
backtrace.cpp File Reference
#include <libzth/backtrace.h>
#include <libzth/context.h>
#include <libzth/worker.h>

Go to the source code of this file.

Namespaces

namespace  zth
 
namespace  zth::impl
 

Macros

#define UNW_LOCAL_ONLY
 
#define ZTH_BT_NONE
 
#define ZTH_BT_PRINT_NONE
 
#define bt_print_symbols   bt_print_addr
 
#define bt_print_dl   bt_print_symbols
 
#define bt_print_addr2line   bt_print_dl
 
#define bt_print_libbacktrace   bt_print_addr2line
 

Functions

void context_entry (zth::Context *context)
 Entry point of the fiber.
 

Macro Definition Documentation

◆ bt_print_addr2line

#define bt_print_addr2line   bt_print_dl

Definition at line 931 of file backtrace.cpp.

◆ bt_print_dl

#define bt_print_dl   bt_print_symbols

Definition at line 326 of file backtrace.cpp.

◆ bt_print_libbacktrace

#define bt_print_libbacktrace   bt_print_addr2line

Definition at line 998 of file backtrace.cpp.

◆ bt_print_symbols

#define bt_print_symbols   bt_print_addr

Definition at line 288 of file backtrace.cpp.

◆ UNW_LOCAL_ONLY

#define UNW_LOCAL_ONLY

Definition at line 7 of file backtrace.cpp.

◆ ZTH_BT_NONE

#define ZTH_BT_NONE

Definition at line 26 of file backtrace.cpp.

◆ ZTH_BT_PRINT_NONE

#define ZTH_BT_PRINT_NONE

Definition at line 30 of file backtrace.cpp.

Function Documentation

◆ context_entry()

void context_entry ( zth::Context context)
noexcept

Entry point of the fiber.

This function is called by the actual context switching mechanism. It will call the entry function, as specified by the Context's attributes during creation, which is zth::Fiber::fiberEntry() by default.

This function does not return. When the entry function returns, the context is considered dead, the Worker's scheduler is invoked, and the context is destroyed.

Definition at line 164 of file context.cpp.