diff options
author | 2015-09-22 10:42:19 -0700 | |
---|---|---|
committer | 2015-09-22 10:42:19 -0700 | |
commit | 45724b35e411fef7c5da66a74c78428c11d56843 (patch) | |
tree | 9264034aca675c89444e02f72ef58e67d7043604 /src/core/statistics/census_log.h | |
parent | 298751c1195523ef6228595043b583c3a6270e08 (diff) |
indent pass to get logical source lines on one physical line
Diffstat (limited to 'src/core/statistics/census_log.h')
-rw-r--r-- | src/core/statistics/census_log.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/core/statistics/census_log.h b/src/core/statistics/census_log.h index 60b6d597df..3c0c2dc52d 100644 --- a/src/core/statistics/census_log.h +++ b/src/core/statistics/census_log.h @@ -37,7 +37,7 @@ #include <stddef.h> /* Maximum record size, in bytes. */ -#define CENSUS_LOG_2_MAX_RECORD_SIZE 14 /* 2^14 = 16KB */ +#define CENSUS_LOG_2_MAX_RECORD_SIZE 14 /* 2^14 = 16KB */ #define CENSUS_LOG_MAX_RECORD_SIZE (1 << CENSUS_LOG_2_MAX_RECORD_SIZE) /* Initialize the statistics logging subsystem with the given log size. A log @@ -47,13 +47,13 @@ when the log is full. This function must be called before any other census_log functions. */ -void census_log_initialize(size_t size_in_mb, int discard_old_records); +void census_log_initialize (size_t size_in_mb, int discard_old_records); /* Shutdown the logging subsystem. Caller must ensure that: - no in progress or future call to any census_log functions - no incomplete records */ -void census_log_shutdown(void); +void census_log_shutdown (void); /* Allocates and returns a 'size' bytes record and marks it in use. A subsequent census_log_end_write() marks the record complete. The @@ -62,9 +62,9 @@ void census_log_shutdown(void); - log is configured to keep old records OR - all blocks are pinned by incomplete records. */ -void* census_log_start_write(size_t size); +void *census_log_start_write (size_t size); -void census_log_end_write(void* record, size_t bytes_written); +void census_log_end_write (void *record, size_t bytes_written); /* census_log_read_next() iterates over blocks with data and for each block returns a pointer to the first unread byte. The number of bytes that can be @@ -74,18 +74,18 @@ void census_log_end_write(void* record, size_t bytes_written); is read. census_log_init_reader() starts the iteration or aborts the current iteration. */ -void census_log_init_reader(void); -const void* census_log_read_next(size_t* bytes_available); +void census_log_init_reader (void); +const void *census_log_read_next (size_t * bytes_available); /* Returns estimated remaining space across all blocks, in bytes. If log is configured to discard old records, returns total log space. Otherwise, returns space available in empty blocks (partially filled blocks are treated as full). */ -size_t census_log_remaining_space(void); +size_t census_log_remaining_space (void); /* Returns the number of times gprc_stats_log_start_write() failed due to out-of-space. */ -int census_log_out_of_space_count(void); +int census_log_out_of_space_count (void); #endif /* GRPC_INTERNAL_CORE_STATISTICS_CENSUS_LOG_H */ |