mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-20 12:16:40 +00:00
pass more info to notification functions
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29068 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
48499df0dd
commit
e0c9ae4e2d
6 changed files with 43 additions and 31 deletions
|
@ -565,7 +565,8 @@ add_to_queue(NSNotificationQueueList *queue, NSNotification *notification,
|
|||
* NSRunLoop.
|
||||
*/
|
||||
|
||||
static inline void notifyASAP(NSNotificationQueue *q)
|
||||
static inline void
|
||||
notifyASAP(NSNotificationQueue *q, NSString *mode)
|
||||
{
|
||||
NSNotificationQueueList *list = ((accessQueue)q)->_asapQueue;
|
||||
|
||||
|
@ -587,7 +588,7 @@ static inline void notifyASAP(NSNotificationQueue *q)
|
|||
}
|
||||
|
||||
void
|
||||
GSPrivateNotifyASAP()
|
||||
GSPrivateNotifyASAP(NSString *mode)
|
||||
{
|
||||
NotificationQueueList *item;
|
||||
|
||||
|
@ -595,12 +596,13 @@ GSPrivateNotifyASAP()
|
|||
{
|
||||
if (item->queue)
|
||||
{
|
||||
notifyASAP(item->queue);
|
||||
notifyASAP(item->queue, mode);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static inline void notifyIdle(NSNotificationQueue *q)
|
||||
static inline void
|
||||
notifyIdle(NSNotificationQueue *q, NSString *mode)
|
||||
{
|
||||
NSNotificationQueueList *list = ((accessQueue)q)->_idleQueue;
|
||||
|
||||
|
@ -622,11 +624,11 @@ static inline void notifyIdle(NSNotificationQueue *q)
|
|||
/*
|
||||
* Post all ASAP notifications.
|
||||
*/
|
||||
notifyASAP(q);
|
||||
notifyASAP(q, mode);
|
||||
}
|
||||
|
||||
void
|
||||
GSPrivateNotifyIdle()
|
||||
GSPrivateNotifyIdle(NSString *mode)
|
||||
{
|
||||
NotificationQueueList *item;
|
||||
|
||||
|
@ -634,13 +636,13 @@ GSPrivateNotifyIdle()
|
|||
{
|
||||
if (item->queue)
|
||||
{
|
||||
notifyIdle(item->queue);
|
||||
notifyIdle(item->queue, mode);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
BOOL
|
||||
GSPrivateNotifyMore()
|
||||
GSPrivateNotifyMore(NSString *mode)
|
||||
{
|
||||
NotificationQueueList *item;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue