|
CARLA
|
#include <AtomicActorSet.h>
Public Member Functions | |
| AtomicActorSet () | |
| void | Clear () |
| bool | Contains (ActorId id) |
| void | Destroy (ActorId actor_id) |
| std::vector< ActorId > | GetIDList () |
| std::vector< ActorPtr > | GetList () |
| int | GetState () |
| void | Insert (std::vector< ActorPtr > actor_list) |
| void | Remove (std::vector< ActorId > actor_id_list) |
| size_t | Size () |
| std::vector< ActorPtr > | TakeReleased () |
| Actors removed since the last call; drop them with no lock held. | |
Private Attributes | |
| std::map< ActorId, ActorPtr > | actor_set |
| std::mutex | modification_mutex |
| std::vector< ActorPtr > | released |
| Removed actors, kept alive until TakeReleased() so they die outside TM locks. | |
| int | state_counter |
Definition at line 23 of file AtomicActorSet.h.
|
inline |
Definition at line 35 of file AtomicActorSet.h.
References state_counter.
|
inline |
Definition at line 109 of file AtomicActorSet.h.
References actor_set, modification_mutex, and released.
Referenced by carla::traffic_manager::TrafficManagerLocal::Stop().
|
inline |
Definition at line 97 of file AtomicActorSet.h.
References actor_set, and modification_mutex.
Referenced by carla::traffic_manager::ALSM::IdentifyDestroyedActors(), and carla::traffic_manager::ALSM::IdentifyNewActors().
|
inline |
Definition at line 79 of file AtomicActorSet.h.
References actor_set, modification_mutex, released, and state_counter.
Referenced by carla::traffic_manager::ALSM::Update().
|
inline |
Definition at line 47 of file AtomicActorSet.h.
References actor_set, and modification_mutex.
Referenced by carla::traffic_manager::TrafficManagerLocal::GetRegisteredVehiclesIDs(), carla::traffic_manager::ALSM::IdentifyDestroyedActors(), and carla::traffic_manager::TrafficManagerLocal::Step().
|
inline |
Definition at line 37 of file AtomicActorSet.h.
References actor_set, and modification_mutex.
Referenced by carla::traffic_manager::ALSM::UpdateRegisteredActorsData().
|
inline |
Definition at line 91 of file AtomicActorSet.h.
References modification_mutex, and state_counter.
Referenced by carla::traffic_manager::TrafficManagerLocal::Step().
|
inline |
Definition at line 57 of file AtomicActorSet.h.
References actor_set, modification_mutex, and state_counter.
Referenced by carla::traffic_manager::TrafficManagerLocal::RegisterVehicles().
|
inline |
Definition at line 66 of file AtomicActorSet.h.
References actor_set, modification_mutex, released, and state_counter.
Referenced by carla::traffic_manager::ALSM::RemoveActor().
|
inline |
Definition at line 103 of file AtomicActorSet.h.
References actor_set, and modification_mutex.
Referenced by carla::traffic_manager::TrafficManagerLocal::Step().
|
inline |
Actors removed since the last call; drop them with no lock held.
Definition at line 119 of file AtomicActorSet.h.
References modification_mutex, and released.
Referenced by carla::traffic_manager::TrafficManagerLocal::Run(), and carla::traffic_manager::TrafficManagerLocal::TakeReleasedActors().
Definition at line 28 of file AtomicActorSet.h.
Referenced by Clear(), Contains(), Destroy(), GetIDList(), GetList(), Insert(), Remove(), and Size().
|
private |
Definition at line 27 of file AtomicActorSet.h.
Referenced by Clear(), Contains(), Destroy(), GetIDList(), GetList(), GetState(), Insert(), Remove(), Size(), and TakeReleased().
|
private |
Removed actors, kept alive until TakeReleased() so they die outside TM locks.
Definition at line 31 of file AtomicActorSet.h.
Referenced by Clear(), Destroy(), Remove(), and TakeReleased().
|
private |
Definition at line 29 of file AtomicActorSet.h.
Referenced by AtomicActorSet(), Destroy(), GetState(), Insert(), and Remove().