1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
|
#include <ptlib.h>
#include <ptlib/safecoll.h>
class SortedListTest:public PProcess {
PCLASSINFO(SortedListTest, PProcess);
public:
SortedListTest();
void Main();
};
class DoSomeThing:public PThread {
PCLASSINFO(DoSomeThing, PThread);
public:
DoSomeThing(PINDEX _index);
void Main();
private:
PINDEX index;
PSortedList<PString> list;
};
class PSafeString:public PSafeObject {
PCLASSINFO(PSafeString, PSafeObject);
PSafeString(const PString & _string);
void PrintOn(ostream &strm) const;
private:
PString string;
};
class DoSomeThing2:public PThread {
PCLASSINFO(DoSomeThing2, PThread);
public:
DoSomeThing2(PINDEX _index);
void Main();
private:
PINDEX index;
PSafeSortedList<PSafeString> list;
};
|