diff options
| author | n0n4m3 <none@none> | 2009-12-17 07:34:00 +0100 |
|---|---|---|
| committer | n0n4m3 <none@none> | 2009-12-17 07:34:00 +0100 |
| commit | 2028f0658b2bb95e2390aba8fd995271fe4e41d6 (patch) | |
| tree | 0b468a4234b90588e7b7e799b7581b57800add2d /src/game/Player.cpp | |
| parent | 8507b7da9902303189e9d01c8c23d1aaf8d656bd (diff) | |
Removed mtmaps OpenMP
Implement mtmaps based on ACE
For stable work MapUpdate.Threads=2 in config
--HG--
branch : trunk
Diffstat (limited to 'src/game/Player.cpp')
| -rw-r--r-- | src/game/Player.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp index ba5fddd3637..7b50c44ea16 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -1121,12 +1121,6 @@ void Player::SetDrunkValue(uint16 newDrunkenValue, uint32 itemId) void Player::Update( uint32 p_time ) { - // Until Trinity is thread safe, anything that could result in a - // map, zone, or area change in this Update should be preceded by: - // #pragma omp critical(UpdateThreadSafety) - // This will only allow one thread at a time to process a "UpdateThreadSafety" block. - // NOTE: I'm only certain about the map change part. The zone and area #pragma is just a precaution. - if (!IsInWorld()) return; @@ -1294,7 +1288,6 @@ void Player::Update( uint32 p_time ) m_weaponChangeTimer -= p_time; } - #pragma omp critical(UpdateThreadSafety) if (m_zoneUpdateTimer > 0) { if (p_time >= m_zoneUpdateTimer) @@ -1374,7 +1367,6 @@ void Player::Update( uint32 p_time ) // not auto-free ghost from body in instances if(m_deathTimer > 0 && !GetBaseMap()->Instanceable()) { - #pragma omp critical(UpdateThreadSafety) if(p_time >= m_deathTimer) { m_deathTimer = 0; @@ -1398,7 +1390,6 @@ void Player::Update( uint32 p_time ) //we should execute delayed teleports only for alive(!) players //because we don't want player's ghost teleported from graveyard - #pragma omp critical(UpdateThreadSafety) if (IsHasDelayedTeleport() && isAlive()) TeleportTo(m_teleport_dest, m_teleport_options); } |
