mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-18 11:19:10 +00:00
Obliterate hsBool
This commit is contained in:
@ -85,7 +85,7 @@ public:
|
||||
};
|
||||
|
||||
int32_t plDispatch::fNumBufferReq = 0;
|
||||
hsBool plDispatch::fMsgActive = false;
|
||||
bool plDispatch::fMsgActive = false;
|
||||
plMsgWrap* plDispatch::fMsgCurrent = nil;
|
||||
plMsgWrap* plDispatch::fMsgHead = nil;
|
||||
plMsgWrap* plDispatch::fMsgTail = nil;
|
||||
@ -166,7 +166,7 @@ plMsgWrap* plDispatch::IDequeue(plMsgWrap** head, plMsgWrap** tail)
|
||||
return retVal;
|
||||
}
|
||||
|
||||
hsBool plDispatch::ISortToDeferred(plMessage* msg)
|
||||
bool plDispatch::ISortToDeferred(plMessage* msg)
|
||||
{
|
||||
plMsgWrap* msgWrap = new plMsgWrap(msg);
|
||||
if( !fFutureMsgQueue )
|
||||
@ -213,7 +213,7 @@ void plDispatch::ICheckDeferred(double secs)
|
||||
plgDispatch::Dispatch()->UnRegisterForExactType(plTimeMsg::Index(), IGetOwnerKey());
|
||||
}
|
||||
|
||||
hsBool plDispatch::IListeningForExactType(uint16_t hClass)
|
||||
bool plDispatch::IListeningForExactType(uint16_t hClass)
|
||||
{
|
||||
if( (hClass == plTimeMsg::Index()) && fFutureMsgQueue )
|
||||
return true;
|
||||
@ -221,7 +221,7 @@ hsBool plDispatch::IListeningForExactType(uint16_t hClass)
|
||||
return false;
|
||||
}
|
||||
|
||||
void plDispatch::IMsgEnqueue(plMsgWrap* msgWrap, hsBool async)
|
||||
void plDispatch::IMsgEnqueue(plMsgWrap* msgWrap, bool async)
|
||||
{
|
||||
fMsgCurrentMutex.Lock();
|
||||
|
||||
@ -242,7 +242,7 @@ void plDispatch::IMsgEnqueue(plMsgWrap* msgWrap, hsBool async)
|
||||
}
|
||||
|
||||
// On starts deferring msg delivery until buffering is set to off again.
|
||||
hsBool plDispatch::SetMsgBuffering(hsBool on)
|
||||
bool plDispatch::SetMsgBuffering(bool on)
|
||||
{
|
||||
fMsgCurrentMutex.Lock();
|
||||
if( on )
|
||||
@ -292,7 +292,7 @@ void plDispatch::IMsgDispatch()
|
||||
fMsgCurrentMutex.Unlock();
|
||||
|
||||
plMessage* msg = fMsgCurrent->fMsg;
|
||||
hsBool nonLocalMsg = msg && msg->HasBCastFlag(plMessage::kNetNonLocal);
|
||||
bool nonLocalMsg = msg && msg->HasBCastFlag(plMessage::kNetNonLocal);
|
||||
|
||||
#ifdef HS_DEBUGGING
|
||||
int watchIdx = fMsgWatch.Find(msg);
|
||||
@ -412,7 +412,7 @@ void plDispatch::IMsgDispatch()
|
||||
//
|
||||
// returns true if msg has been consumed and deleted
|
||||
//
|
||||
hsBool plDispatch::IMsgNetPropagate(plMessage* msg)
|
||||
bool plDispatch::IMsgNetPropagate(plMessage* msg)
|
||||
{
|
||||
fMsgCurrentMutex.Lock();
|
||||
|
||||
@ -452,7 +452,7 @@ hsBool plDispatch::IMsgNetPropagate(plMessage* msg)
|
||||
return false;
|
||||
}
|
||||
|
||||
hsBool plDispatch::MsgSend(plMessage* msg, hsBool async)
|
||||
bool plDispatch::MsgSend(plMessage* msg, bool async)
|
||||
{
|
||||
if( IMsgNetPropagate(msg) )
|
||||
return true;
|
||||
@ -498,7 +498,7 @@ hsBool plDispatch::MsgSend(plMessage* msg, hsBool async)
|
||||
|
||||
return true;
|
||||
}
|
||||
void plDispatch::MsgQueueOnOff(hsBool sw)
|
||||
void plDispatch::MsgQueueOnOff(bool sw)
|
||||
{
|
||||
fQueuedMsgOn = sw;
|
||||
}
|
||||
@ -574,7 +574,7 @@ void plDispatch::UnRegisterForType(uint16_t hClass, const plKey& receiver)
|
||||
|
||||
}
|
||||
|
||||
hsBool plDispatch::IUnRegisterForExactType(int idx, const plKey& receiver)
|
||||
bool plDispatch::IUnRegisterForExactType(int idx, const plKey& receiver)
|
||||
{
|
||||
hsAssert(idx < fRegisteredExactTypes.GetCount(), "Out of range should be filtered before call to internal");
|
||||
plTypeFilter* filt = fRegisteredExactTypes[idx];
|
||||
|
@ -80,32 +80,32 @@ protected:
|
||||
static hsMutex fMsgDispatchLock; // mutex for IMsgDispatch
|
||||
static plMsgWrap* fMsgHead;
|
||||
static plMsgWrap* fMsgTail;
|
||||
static hsBool fMsgActive;
|
||||
static bool fMsgActive;
|
||||
static hsTArray<plMessage*> fMsgWatch;
|
||||
static MsgRecieveCallback fMsgRecieveCallback;
|
||||
|
||||
hsTArray<plTypeFilter*> fRegisteredExactTypes;
|
||||
std::list<plMessage*> fQueuedMsgList;
|
||||
hsMutex fQueuedMsgListMutex; // mutex for above
|
||||
hsBool fQueuedMsgOn; // Turns on or off Queued Messages, Plugins need them off
|
||||
bool fQueuedMsgOn; // Turns on or off Queued Messages, Plugins need them off
|
||||
|
||||
hsKeyedObject* IGetOwner() { return fOwner; }
|
||||
plKey IGetOwnerKey() { return IGetOwner() ? IGetOwner()->GetKey() : nil; }
|
||||
int IFindType(uint16_t hClass);
|
||||
int IFindSender(const plKey& sender);
|
||||
hsBool IUnRegisterForExactType(int idx, const plKey& receiver);
|
||||
bool IUnRegisterForExactType(int idx, const plKey& receiver);
|
||||
|
||||
static plMsgWrap* IInsertToQueue(plMsgWrap** back, plMsgWrap* isert);
|
||||
static plMsgWrap* IDequeue(plMsgWrap** head, plMsgWrap** tail);
|
||||
|
||||
hsBool IMsgNetPropagate(plMessage* msg);
|
||||
bool IMsgNetPropagate(plMessage* msg);
|
||||
|
||||
static void IMsgDispatch();
|
||||
static void IMsgEnqueue(plMsgWrap* msgWrap, hsBool async);
|
||||
static void IMsgEnqueue(plMsgWrap* msgWrap, bool async);
|
||||
|
||||
hsBool ISortToDeferred(plMessage* msg);
|
||||
bool ISortToDeferred(plMessage* msg);
|
||||
void ICheckDeferred(double stamp);
|
||||
hsBool IListeningForExactType(uint16_t hClass);
|
||||
bool IListeningForExactType(uint16_t hClass);
|
||||
|
||||
void ITrashUndelivered(); // Just pitches them, doesn't try to deliver.
|
||||
|
||||
@ -124,12 +124,12 @@ public:
|
||||
|
||||
virtual void UnRegisterAll(const plKey& receiver);
|
||||
|
||||
virtual hsBool MsgSend(plMessage* msg, hsBool async=false);
|
||||
virtual bool MsgSend(plMessage* msg, bool async=false);
|
||||
virtual void MsgQueue(plMessage* msg); // Used by other thread to Send Messages, they are handled as soon as Practicable
|
||||
virtual void MsgQueueProcess();
|
||||
virtual void MsgQueueOnOff(hsBool ); // Turn on or off Queued Messages, if off, uses MsgSend Immediately
|
||||
virtual void MsgQueueOnOff(bool ); // Turn on or off Queued Messages, if off, uses MsgSend Immediately
|
||||
|
||||
virtual hsBool SetMsgBuffering(hsBool on); // On starts deferring msg delivery until buffering is set to off again.
|
||||
virtual bool SetMsgBuffering(bool on); // On starts deferring msg delivery until buffering is set to off again.
|
||||
|
||||
static void SetMsgRecieveCallback(MsgRecieveCallback callback) { fMsgRecieveCallback = callback; }
|
||||
};
|
||||
@ -145,7 +145,7 @@ public:
|
||||
virtual void UnRegisterForType(uint16_t hClass, const plKey& receiver) {}
|
||||
|
||||
|
||||
virtual hsBool MsgSend(plMessage* msg) { return true; }
|
||||
virtual bool MsgSend(plMessage* msg) { return true; }
|
||||
virtual void MsgQueue(plMessage* msg) {}
|
||||
virtual void MsgQueueProcess() {}
|
||||
|
||||
|
Reference in New Issue
Block a user