Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 38 lines (22 sloc) 533 Bytes
#ifndef com_sleepless_misc_stringqueue_cpp
#define com_sleepless_misc_stringqueue_cpp
// Copyright 1998-2304 Sleepless Software Inc. All Rights Reserved
/* This is a first in, first out queue that holds pointers to String / S objects. It is thread safe. */
#include "queue.cpp"
struct StringQueue : Queue
{
void queue(S *p)
{
Queue::queue(p);
}
S *next()
{
return (S *)Queue::next();
}
S *at(int i)
{
return (S *)Queue::at(i);
}
};
// XXX make test code
#endif // com_sleepless_misc_stringqueue_cpp