GRPC C++  1.26.0
Data Structures | Namespaces | Macros | Typedefs | Functions
exec_ctx.h File Reference
#include <grpc/support/port_platform.h>
#include <grpc/impl/codegen/grpc_types.h>
#include <grpc/support/atm.h>
#include <grpc/support/cpu.h>
#include <grpc/support/log.h>
#include "src/core/lib/gpr/time_precise.h"
#include "src/core/lib/gpr/tls.h"
#include "src/core/lib/gprpp/debug_location.h"
#include "src/core/lib/gprpp/fork.h"
#include "src/core/lib/iomgr/closure.h"

Go to the source code of this file.

Data Structures

class  grpc_core::ExecCtx
 Execution context. More...
 
struct  grpc_core::ExecCtx::CombinerData
 
class  grpc_core::ApplicationCallbackExecCtx
 Application-callback execution context. More...
 

Namespaces

 grpc_core
 Internal thread interface.
 

Macros

#define GRPC_MILLIS_INF_FUTURE   INT64_MAX
 
#define GRPC_MILLIS_INF_PAST   INT64_MIN
 
#define GRPC_EXEC_CTX_FLAG_IS_FINISHED   1
 
#define GRPC_EXEC_CTX_FLAG_THREAD_RESOURCE_LOOP   2
 
#define GRPC_EXEC_CTX_FLAG_IS_INTERNAL_THREAD   4
 
#define GRPC_APP_CALLBACK_EXEC_CTX_FLAG_IS_INTERNAL_THREAD   1
 

Typedefs

typedef int64_t grpc_millis
 
typedef struct grpc_combiner grpc_combiner
 A combiner represents a list of work to be executed later. More...
 

Functions

gpr_timespec grpc_millis_to_timespec (grpc_millis millis, gpr_clock_type clock)
 
grpc_millis grpc_timespec_to_millis_round_down (gpr_timespec timespec)
 
grpc_millis grpc_timespec_to_millis_round_up (gpr_timespec timespec)
 
grpc_millis grpc_cycle_counter_to_millis_round_down (gpr_cycle_counter cycles)
 
grpc_millis grpc_cycle_counter_to_millis_round_up (gpr_cycle_counter cycles)
 

Macro Definition Documentation

◆ GRPC_APP_CALLBACK_EXEC_CTX_FLAG_IS_INTERNAL_THREAD

#define GRPC_APP_CALLBACK_EXEC_CTX_FLAG_IS_INTERNAL_THREAD   1

◆ GRPC_EXEC_CTX_FLAG_IS_FINISHED

#define GRPC_EXEC_CTX_FLAG_IS_FINISHED   1

◆ GRPC_EXEC_CTX_FLAG_IS_INTERNAL_THREAD

#define GRPC_EXEC_CTX_FLAG_IS_INTERNAL_THREAD   4

◆ GRPC_EXEC_CTX_FLAG_THREAD_RESOURCE_LOOP

#define GRPC_EXEC_CTX_FLAG_THREAD_RESOURCE_LOOP   2

◆ GRPC_MILLIS_INF_FUTURE

#define GRPC_MILLIS_INF_FUTURE   INT64_MAX

◆ GRPC_MILLIS_INF_PAST

#define GRPC_MILLIS_INF_PAST   INT64_MIN

Typedef Documentation

◆ grpc_combiner

typedef struct grpc_combiner grpc_combiner

A combiner represents a list of work to be executed later.

Forward declared here to avoid a circular dependency with combiner.h.

◆ grpc_millis

typedef int64_t grpc_millis

Function Documentation

◆ grpc_cycle_counter_to_millis_round_down()

grpc_millis grpc_cycle_counter_to_millis_round_down ( gpr_cycle_counter  cycles)

◆ grpc_cycle_counter_to_millis_round_up()

grpc_millis grpc_cycle_counter_to_millis_round_up ( gpr_cycle_counter  cycles)

◆ grpc_millis_to_timespec()

gpr_timespec grpc_millis_to_timespec ( grpc_millis  millis,
gpr_clock_type  clock 
)

◆ grpc_timespec_to_millis_round_down()

grpc_millis grpc_timespec_to_millis_round_down ( gpr_timespec  timespec)

◆ grpc_timespec_to_millis_round_up()

grpc_millis grpc_timespec_to_millis_round_up ( gpr_timespec  timespec)