54 time_t timer = time(NULL);
55 struct tm *time = localtime(&timer);
106 size_t itemLength = (size_t)message.
parameter1;
198 Lock managerLock(manager->
lock,
"DataQueue::pullData", 0);
256 Lock managerLock(manager->
lock,
"DataQueue::pull#1", 0);
270 Lock managerLock(manager->
lock,
"DataQueue::pull#2", 0);
295 while (current != NULL)
303 current = current->
next;
318 Lock managerLock(manager->
lock,
"QueueTable::synchronizedLocate", 0);
335 while (current != NULL)
343 current = current->
next;
358 Lock managerLock(manager->
lock,
"QueueTable::synchronizedLocate", 0);
375 while (current != NULL)
385 current = current->
next;
401 while (current != NULL)
410 current = current->
next;
426 while (current != NULL)
436 current = current->
next;
438 current =
new DataQueue(
id,
"QueueTable::remove", 0);
501 queue->
pull(
this, message);
527 queue->
pull(
this, message);
538 Lock managerLock(
lock,
"ServerQueueManager::getSessionQueue", 0);
545 queue =
new DataQueue(session,
"ServerQueueManager::getSessionQueue", 0);
562 queue =
new DataQueue(session,
"ServerQueueManager::createSessionQueue", 0);
604 snprintf(session,
sizeof session,
"%p", (
void *)message.
parameter1);
605 snprintf(tagstring,
sizeof tagstring,
"%p", (
void *)tag);
608 snprintf(message.
nameArg,
sizeof message.
nameArg,
"S%sQ%s", (
char *)(session[1] ==
'x' ? session + 2 : session),
609 (
char *)(tagstring[1] ==
'x' ? tagstring + 2 : tagstring));
631 if (strlen(message.
nameArg) == 0)
644 queue =
new DataQueue(message.
nameArg,
"ServerQueueManager::createNamedQueue", 0);
671 queue =
new DataQueue(message.
nameArg,
"ServerQueueManager::openNamedQueue", 0);
730 if (queue->hasWaiters())
735 else if (queue->removeReference() == 0)
882 Lock managerLock(
lock,
"ServerQueueManager::dispatch", 0);
@ GET_SESSION_QUEUE_COUNT
@ PULL_FROM_SESSION_QUEUE
void add(ServiceMessage &message)
void addFifo(QueueItem *item)
void pull(ServerQueueManager *manager, ServiceMessage &message)
void setName(const char *name)
bool pullData(ServerQueueManager *manager, ServiceMessage &message)
void addLifo(QueueItem *item)
DataQueue * locate(const char *name)
DataQueue * synchronizedLocate(ServerQueueManager *manager, const char *name)
DataQueue * remove(const char *name)
void add(DataQueue *queue)
void removeQueue(DataQueue *current, DataQueue *previous)
void createNamedQueue(ServiceMessage &message)
void clearSessionQueue(ServiceMessage &message)
void openNamedQueue(ServiceMessage &message)
void addToNamedQueue(ServiceMessage &message)
void pullFromNamedQueue(ServiceMessage &message)
void nestSessionQueue(ServiceMessage &message)
void dispatch(ServiceMessage &message)
void cleanupProcessResources(SessionID session)
void getSessionQueueCount(ServiceMessage &message)
void deleteNamedQueue(ServiceMessage &message)
void createUniqueQueue(ServiceMessage &message)
void addToSessionQueue(ServiceMessage &message)
void deleteSessionQueue(ServiceMessage &message)
DataQueue * getSessionQueue(SessionID session)
void queryNamedQueue(ServiceMessage &message)
void getNamedQueueCount(ServiceMessage &message)
void createSessionQueue(ServiceMessage &message)
void pullFromSessionQueue(ServiceMessage &message)
void clearNamedQueue(ServiceMessage &message)
void setExceptionInfo(ErrorCode error, const char *message)
ServerOperation operation
void setMessageData(void *data, size_t length)
void setResult(ServiceReturn code)
static int strCaselessCompare(const char *opt1, const char *opt2)