Ejemplo n.º 1
0
 /// <summary>
 /// Determines if an item is locked.
 /// <paramref name="item"/> the <see cref="PooledStringBuilder"/> instance
 /// <returns><c>true</c> if the asset is locked, false if it is free and ready for use</returns>
 /// </summary>
 public bool IsItemLocked(PooledStringBuilder item)
 {
     return(locked[item.GetPoolIndex()]);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Unlocks the assets, readying it for use again.
 /// <paramref name="item"/> the <see cref="PooledStringBuilder"/> asset
 /// </summary>
 public void UnlockItem(PooledStringBuilder item)
 {
     locked[item.GetPoolIndex()] = false;
 }