#ifndef Py_INTERNAL_BACKOFF_H
#define Py_INTERNAL_BACKOFF_H
#ifdef __cplusplus
extern "C" {
#endif
#ifndef Py_BUILD_CORE
# error "this header requires Py_BUILD_CORE define"
#endif
#include <assert.h>
#include <stdbool.h>
#include <stdint.h>
_Py_BackoffCounter;
#define BACKOFF_BITS …
#define MAX_BACKOFF …
#define UNREACHABLE_BACKOFF …
static inline bool
is_unreachable_backoff_counter(_Py_BackoffCounter counter)
{ … }
static inline _Py_BackoffCounter
make_backoff_counter(uint16_t value, uint16_t backoff)
{ … }
static inline _Py_BackoffCounter
forge_backoff_counter(uint16_t counter)
{ … }
static inline _Py_BackoffCounter
restart_backoff_counter(_Py_BackoffCounter counter)
{ … }
static inline _Py_BackoffCounter
pause_backoff_counter(_Py_BackoffCounter counter)
{ … }
static inline _Py_BackoffCounter
advance_backoff_counter(_Py_BackoffCounter counter)
{ … }
static inline bool
backoff_counter_triggers(_Py_BackoffCounter counter)
{ … }
#define JUMP_BACKWARD_INITIAL_VALUE …
#define JUMP_BACKWARD_INITIAL_BACKOFF …
static inline _Py_BackoffCounter
initial_jump_backoff_counter(void)
{ … }
#define SIDE_EXIT_INITIAL_VALUE …
#define SIDE_EXIT_INITIAL_BACKOFF …
static inline _Py_BackoffCounter
initial_temperature_backoff_counter(void)
{ … }
static inline _Py_BackoffCounter
initial_unreachable_backoff_counter(void)
{ … }
#ifdef __cplusplus
}
#endif
#endif