zx::counter

Summary

Inheritance

Inherits from: zx::object< counter >

Constructors and Destructors

counter()
counter(zx_handle_t value)
counter(handle && h)
counter(counter && other)

Public static attributes

TYPE = ZX_OBJ_TYPE_COUNTER
constexpr zx_obj_type_t

Public functions

add(int64_t value) const
zx_status_t
operator=(counter && other)
read(int64_t *value) const
zx_status_t
write(int64_t value) const
zx_status_t

Public static functions

create(uint32_t options, counter *result)
zx_status_t

Public static attributes

TYPE

constexpr zx_obj_type_t TYPE = ZX_OBJ_TYPE_COUNTER

Public functions

add

zx_status_t add(
  int64_t value
) const 

counter

constexpr counter()=default

counter

 counter(
  zx_handle_t value
)

counter

 counter(
  handle && h
)

counter

 counter(
  counter && other
)

operator=

counter & operator=(
  counter && other
)

read

zx_status_t read(
  int64_t *value
) const 

write

zx_status_t write(
  int64_t value
) const 

Public static functions

create

zx_status_t create(
  uint32_t options,
  counter *result
)