diff options
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs index 6f3a084..7bd6c11 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs | |||
@@ -2584,6 +2584,10 @@ namespace OpenSim.Region.Framework.Scenes | |||
2584 | /// <summary> | 2584 | /// <summary> |
2585 | /// Link the prims in a given group to this group | 2585 | /// Link the prims in a given group to this group |
2586 | /// </summary> | 2586 | /// </summary> |
2587 | /// <remarks> | ||
2588 | /// Do not call this method directly - use Scene.LinkObjects() instead to avoid races between threads. | ||
2589 | /// FIXME: There are places where scripts call these methods directly without locking. This is a potential race condition. | ||
2590 | /// </remarks> | ||
2587 | /// <param name="objectGroup">The group of prims which should be linked to this group</param> | 2591 | /// <param name="objectGroup">The group of prims which should be linked to this group</param> |
2588 | public void LinkToGroup(SceneObjectGroup objectGroup) | 2592 | public void LinkToGroup(SceneObjectGroup objectGroup) |
2589 | { | 2593 | { |
@@ -2714,6 +2718,11 @@ namespace OpenSim.Region.Framework.Scenes | |||
2714 | /// Delink the given prim from this group. The delinked prim is established as | 2718 | /// Delink the given prim from this group. The delinked prim is established as |
2715 | /// an independent SceneObjectGroup. | 2719 | /// an independent SceneObjectGroup. |
2716 | /// </summary> | 2720 | /// </summary> |
2721 | /// <remarks> | ||
2722 | /// FIXME: This method should not be called directly since it bypasses update locking, allowing a potential race | ||
2723 | /// condition. But currently there is no | ||
2724 | /// alternative method that does take a lonk to delink a single prim. | ||
2725 | /// </remarks> | ||
2717 | /// <param name="partID"></param> | 2726 | /// <param name="partID"></param> |
2718 | /// <returns>The object group of the newly delinked prim. Null if part could not be found</returns> | 2727 | /// <returns>The object group of the newly delinked prim. Null if part could not be found</returns> |
2719 | public SceneObjectGroup DelinkFromGroup(uint partID) | 2728 | public SceneObjectGroup DelinkFromGroup(uint partID) |
@@ -2725,6 +2734,11 @@ namespace OpenSim.Region.Framework.Scenes | |||
2725 | /// Delink the given prim from this group. The delinked prim is established as | 2734 | /// Delink the given prim from this group. The delinked prim is established as |
2726 | /// an independent SceneObjectGroup. | 2735 | /// an independent SceneObjectGroup. |
2727 | /// </summary> | 2736 | /// </summary> |
2737 | /// <remarks> | ||
2738 | /// FIXME: This method should not be called directly since it bypasses update locking, allowing a potential race | ||
2739 | /// condition. But currently there is no | ||
2740 | /// alternative method that does take a lonk to delink a single prim. | ||
2741 | /// </remarks> | ||
2728 | /// <param name="partID"></param> | 2742 | /// <param name="partID"></param> |
2729 | /// <param name="sendEvents"></param> | 2743 | /// <param name="sendEvents"></param> |
2730 | /// <returns>The object group of the newly delinked prim. Null if part could not be found</returns> | 2744 | /// <returns>The object group of the newly delinked prim. Null if part could not be found</returns> |
@@ -2750,6 +2764,11 @@ namespace OpenSim.Region.Framework.Scenes | |||
2750 | /// Delink the given prim from this group. The delinked prim is established as | 2764 | /// Delink the given prim from this group. The delinked prim is established as |
2751 | /// an independent SceneObjectGroup. | 2765 | /// an independent SceneObjectGroup. |
2752 | /// </summary> | 2766 | /// </summary> |
2767 | /// <remarks> | ||
2768 | /// FIXME: This method should not be called directly since it bypasses update locking, allowing a potential race | ||
2769 | /// condition. But currently there is no | ||
2770 | /// alternative method that does take a lonk to delink a single prim. | ||
2771 | /// </remarks> | ||
2753 | /// <param name="partID"></param> | 2772 | /// <param name="partID"></param> |
2754 | /// <param name="sendEvents"></param> | 2773 | /// <param name="sendEvents"></param> |
2755 | /// <returns>The object group of the newly delinked prim.</returns> | 2774 | /// <returns>The object group of the newly delinked prim.</returns> |