#include <dart_api_state.h>
Definition at line 695 of file dart_api_state.h.
◆ ApiState()
dart::ApiState::ApiState |
( |
| ) |
|
|
inline |
Definition at line 697 of file dart_api_state.h.
697: persistent_handles_(), weak_persistent_handles_() {}
◆ acquired_table()
WeakTable * dart::ApiState::acquired_table |
( |
| ) |
|
|
inline |
◆ AllocatePersistentHandle()
Definition at line 712 of file dart_api_state.h.
712 {
713 MutexLocker ml(&mutex_);
715 }
PersistentHandle * AllocateHandle()
◆ AllocateWeakPersistentHandle()
Definition at line 721 of file dart_api_state.h.
721 {
722 MutexLocker ml(&mutex_);
724 }
FinalizablePersistentHandle * AllocateHandle()
◆ ClearWeakPersistentHandle()
Definition at line 725 of file dart_api_state.h.
725 {
726 MutexLocker ml(&mutex_);
728 }
void ClearHandle(FinalizablePersistentHandle *handle)
◆ CountPersistentHandles()
int dart::ApiState::CountPersistentHandles |
( |
| ) |
|
|
inline |
◆ FreePersistentHandle()
Definition at line 716 of file dart_api_state.h.
716 {
717 MutexLocker ml(&mutex_);
719 }
void FreeHandle(PersistentHandle *handle)
◆ FreeWeakPersistentHandle()
Definition at line 729 of file dart_api_state.h.
729 {
730 MutexLocker ml(&mutex_);
731 weak_persistent_handles_.
FreeHandle(weak_ref);
732 }
void FreeHandle(FinalizablePersistentHandle *handle)
◆ IsActivePersistentHandle()
Definition at line 739 of file dart_api_state.h.
739 {
740 MutexLocker ml(&mutex_);
743 }
bool IsValidHandle(Dart_PersistentHandle object) const
bool IsFreeHandle(Dart_PersistentHandle object) const
◆ IsActiveWeakPersistentHandle()
Definition at line 755 of file dart_api_state.h.
755 {
756 MutexLocker ml(&mutex_);
759 }
bool IsFreeHandle(Dart_WeakPersistentHandle object) const
bool IsValidHandle(Dart_WeakPersistentHandle object) const
◆ IsValidFinalizableHandle()
◆ IsValidPersistentHandle()
◆ IsValidWeakPersistentHandle()
◆ MergeOtherApiState()
void dart::ApiState::MergeOtherApiState |
( |
ApiState * |
api_state | ) |
|
◆ RunWithLockedPersistentHandles()
Definition at line 766 of file dart_api_state.h.
767 {
768 MutexLocker ml(&mutex_);
769 fun(persistent_handles_);
770 }
◆ RunWithLockedWeakPersistentHandles()
Definition at line 772 of file dart_api_state.h.
773 {
774 MutexLocker ml(&mutex_);
775 fun(weak_persistent_handles_);
776 }
◆ VisitObjectPointersUnlocked()
Definition at line 701 of file dart_api_state.h.
701 {
703 if (visitor->visit_weak_persistent_handles()) {
705 }
706 }
void VisitObjectPointers(ObjectPointerVisitor *visitor)
void VisitObjectPointers(ObjectPointerVisitor *visitor)
◆ VisitWeakHandlesUnlocked()
void dart::ApiState::VisitWeakHandlesUnlocked |
( |
HandleVisitor * |
visitor | ) |
|
|
inline |
Definition at line 708 of file dart_api_state.h.
708 {
710 }
void VisitHandles(HandleVisitor *visitor)
The documentation for this class was generated from the following file: