diff options
author | Melanie | 2013-06-18 01:50:08 +0100 |
---|---|---|
committer | Melanie | 2013-06-18 01:50:08 +0100 |
commit | 56f4adeb60622aaec687f3a6699a03c964f59d5b (patch) | |
tree | 0ba2fe5ffd3984b41fab05b56361fda507b2a34a /OpenSim/Region/CoreModules/Avatar | |
parent | Merge branch 'master' into careminster (diff) | |
parent | correct method doc for llRot2Axis() (diff) | |
download | opensim-SC-56f4adeb60622aaec687f3a6699a03c964f59d5b.zip opensim-SC-56f4adeb60622aaec687f3a6699a03c964f59d5b.tar.gz opensim-SC-56f4adeb60622aaec687f3a6699a03c964f59d5b.tar.bz2 opensim-SC-56f4adeb60622aaec687f3a6699a03c964f59d5b.tar.xz |
Merge branch 'master' into careminster
Conflicts:
OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
OpenSim/Services/LLLoginService/LLLoginResponse.cs
OpenSim/Services/LLLoginService/LLLoginService.cs
Diffstat (limited to 'OpenSim/Region/CoreModules/Avatar')
-rw-r--r-- | OpenSim/Region/CoreModules/Avatar/UserProfiles/UserProfileModule.cs | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/UserProfiles/UserProfileModule.cs b/OpenSim/Region/CoreModules/Avatar/UserProfiles/UserProfileModule.cs index 322addd..161f160 100644 --- a/OpenSim/Region/CoreModules/Avatar/UserProfiles/UserProfileModule.cs +++ b/OpenSim/Region/CoreModules/Avatar/UserProfiles/UserProfileModule.cs | |||
@@ -60,8 +60,8 @@ namespace OpenSim.Region.OptionalModules.Avatar.UserProfiles | |||
60 | // The pair of Dictionaries are used to handle the switching of classified ads | 60 | // The pair of Dictionaries are used to handle the switching of classified ads |
61 | // by maintaining a cache of classified id to creator id mappings and an interest | 61 | // by maintaining a cache of classified id to creator id mappings and an interest |
62 | // count. The entries are removed when the interest count reaches 0. | 62 | // count. The entries are removed when the interest count reaches 0. |
63 | Dictionary<UUID,UUID> classifiedCache = new Dictionary<UUID, UUID>(); | 63 | Dictionary<UUID, UUID> m_classifiedCache = new Dictionary<UUID, UUID>(); |
64 | Dictionary<UUID,int> classifiedInterest = new Dictionary<UUID, int>(); | 64 | Dictionary<UUID, int> m_classifiedInterest = new Dictionary<UUID, int>(); |
65 | 65 | ||
66 | public Scene Scene | 66 | public Scene Scene |
67 | { | 67 | { |
@@ -102,7 +102,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.UserProfiles | |||
102 | 102 | ||
103 | /// <summary> | 103 | /// <summary> |
104 | /// Gets or sets a value indicating whether this | 104 | /// Gets or sets a value indicating whether this |
105 | /// <see cref="BlueWall.SlipStream.ProfileModule.UserProfileModule"/> is enabled. | 105 | /// <see cref="OpenSim.Region.Coremodules.UserProfiles.UserProfileModule"/> is enabled. |
106 | /// </summary> | 106 | /// </summary> |
107 | /// <value> | 107 | /// <value> |
108 | /// <c>true</c> if enabled; otherwise, <c>false</c>. | 108 | /// <c>true</c> if enabled; otherwise, <c>false</c>. |
@@ -331,16 +331,16 @@ namespace OpenSim.Region.OptionalModules.Avatar.UserProfiles | |||
331 | 331 | ||
332 | classifieds[cid] = name; | 332 | classifieds[cid] = name; |
333 | 333 | ||
334 | if(!classifiedCache.ContainsKey(cid)) | 334 | lock (m_classifiedCache) |
335 | { | 335 | { |
336 | lock(classifiedCache) | 336 | if (!m_classifiedCache.ContainsKey(cid)) |
337 | classifiedCache.Add(cid,creatorId); | 337 | { |
338 | lock(classifiedInterest) | 338 | m_classifiedCache.Add(cid,creatorId); |
339 | classifiedInterest.Add(cid, 0); | 339 | m_classifiedInterest.Add(cid, 0); |
340 | } | 340 | } |
341 | 341 | ||
342 | lock(classifiedInterest) | 342 | m_classifiedInterest[cid]++; |
343 | classifiedInterest[cid] ++; | 343 | } |
344 | } | 344 | } |
345 | 345 | ||
346 | remoteClient.SendAvatarClassifiedReply(new UUID(args[0]), classifieds); | 346 | remoteClient.SendAvatarClassifiedReply(new UUID(args[0]), classifieds); |
@@ -352,19 +352,19 @@ namespace OpenSim.Region.OptionalModules.Avatar.UserProfiles | |||
352 | UserClassifiedAdd ad = new UserClassifiedAdd(); | 352 | UserClassifiedAdd ad = new UserClassifiedAdd(); |
353 | ad.ClassifiedId = queryClassifiedID; | 353 | ad.ClassifiedId = queryClassifiedID; |
354 | 354 | ||
355 | if(classifiedCache.ContainsKey(queryClassifiedID)) | 355 | lock (m_classifiedCache) |
356 | { | 356 | { |
357 | target = classifiedCache[queryClassifiedID]; | 357 | if (m_classifiedCache.ContainsKey(queryClassifiedID)) |
358 | { | ||
359 | target = m_classifiedCache[queryClassifiedID]; | ||
358 | 360 | ||
359 | lock(classifiedInterest) | 361 | m_classifiedInterest[queryClassifiedID] --; |
360 | classifiedInterest[queryClassifiedID] --; | ||
361 | 362 | ||
362 | if(classifiedInterest[queryClassifiedID] == 0) | 363 | if (m_classifiedInterest[queryClassifiedID] == 0) |
363 | { | 364 | { |
364 | lock(classifiedInterest) | 365 | m_classifiedInterest.Remove(queryClassifiedID); |
365 | classifiedInterest.Remove(queryClassifiedID); | 366 | m_classifiedCache.Remove(queryClassifiedID); |
366 | lock(classifiedCache) | 367 | } |
367 | classifiedCache.Remove(queryClassifiedID); | ||
368 | } | 368 | } |
369 | } | 369 | } |
370 | 370 | ||
@@ -1339,4 +1339,4 @@ namespace OpenSim.Region.OptionalModules.Avatar.UserProfiles | |||
1339 | } | 1339 | } |
1340 | #endregion Web Util | 1340 | #endregion Web Util |
1341 | } | 1341 | } |
1342 | } | 1342 | } \ No newline at end of file |