class FutexContext

Defined at line 68 of file ../../zircon/kernel/object/include/object/futex_context.h

FutexContext

A FutexContext is the object which manages the state of all of the active

futexes for a user-mode process. Each ProcessDispatcher in the system will

have a single FutexContext contained within it, and the objects should exist

no-where else in the system.

Public Methods

void FutexContext ()

Defined at line 81 of file ../../zircon/kernel/object/include/object/futex_context.h

void ~FutexContext ()

Defined at line 82 of file ../../zircon/kernel/object/include/object/futex_context.h

zx_status_t Init (ProcessType type)

Initialize this instance for use in the specified process type.

Must be called exactly once.

Defined at line 87 of file ../../zircon/kernel/object/include/object/futex_context.h

zx_status_t GrowFutexStatePool ()

Defined at line 91 of file ../../zircon/kernel/object/include/object/futex_context.h

void ShrinkFutexStatePool ()

Defined at line 92 of file ../../zircon/kernel/object/include/object/futex_context.h

void * get ()

Defined at line 94 of file ../../zircon/kernel/object/include/object/futex_context.h

Enumerations

enum class OwnerAction : uint32_t
Name Value
RELEASE 0
ASSIGN_WOKEN 1

Defined at line 70 of file ../../zircon/kernel/object/include/object/futex_context.h

enum class ProcessType : uint32_t
Name Value
Regular 0
Shared 1

See |Init|.

Defined at line 76 of file ../../zircon/kernel/object/include/object/futex_context.h