Trying to get rid of while(){tick tick tick} by using more intelligent threading classes

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@474 52acb1d6-8a22-11de-b505-999d5b087335
This commit is contained in:
Michael Cortez
2006-11-02 22:28:46 +00:00
parent 579dc0d281
commit 6c0b335f85
4 changed files with 94 additions and 34 deletions

View File

@@ -24,6 +24,9 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
//#define DEBUG_PACKETS
using System;
using System.Collections.Generic;
using System.IO;
@@ -42,7 +45,6 @@ namespace libsecondlife.AssetSystem
/// </summary>
public class ImageManager
{
private const bool DEBUG_PACKETS = true;
private SecondLife slClient;
@@ -333,7 +335,9 @@ namespace libsecondlife.AssetSystem
/// <param name="simulator"></param>
public void ImageDataCallbackHandler(Packet packet, Simulator simulator)
{
if (DEBUG_PACKETS) { Console.WriteLine(packet); }
#if DEBUG_PACKETS
Console.WriteLine(packet);
#endif
ImageDataPacket reply = (ImageDataPacket)packet;
@@ -382,7 +386,9 @@ namespace libsecondlife.AssetSystem
/// <param name="simulator"></param>
public void ImagePacketCallbackHandler(Packet packet, Simulator simulator)
{
if (DEBUG_PACKETS) { Console.WriteLine(packet); }
#if DEBUG_PACKETS
Console.WriteLine(packet);
#endif
ImagePacketPacket reply = (ImagePacketPacket)packet;
@@ -429,7 +435,9 @@ namespace libsecondlife.AssetSystem
/// </summary>
public void ImageNotInDatabaseCallbackHandler(Packet packet, Simulator simulator)
{
if (DEBUG_PACKETS) { Console.WriteLine(packet); }
#if DEBUG_PACKETS
Console.WriteLine(packet);
#endif
ImageNotInDatabasePacket reply = (ImageNotInDatabasePacket)packet;