Rework pjlib++

git-svn-id: https://svn.pjsip.org/repos/pjproject/main@36 74dad513-b988-da41-8d7b-12977e46ad98
diff --git a/pjlib/src/pjlib++-test/main.cpp b/pjlib/src/pjlib++-test/main.cpp
new file mode 100644
index 0000000..4a6d0aa
--- /dev/null
+++ b/pjlib/src/pjlib++-test/main.cpp
@@ -0,0 +1,29 @@
+#include <pj++/file.hpp>

+#include <pj++/list.hpp>

+#include <pj++/lock.hpp>

+#include <pj++/hash.hpp>

+#include <pj++/os.hpp>

+#include <pj++/proactor.hpp>

+#include <pj++/sock.hpp>

+#include <pj++/string.hpp>

+#include <pj++/timer.hpp>

+#include <pj++/tree.hpp>

+

+int main()

+{

+    Pjlib lib;

+    Pj_Caching_Pool mem;

+    Pj_Pool the_pool;

+    Pj_Pool *pool = &the_pool;

+    

+    the_pool.attach(mem.create_pool(4000,4000));

+

+    Pj_Semaphore_Lock lsem(pool);

+    Pj_Semaphore_Lock *plsem;

+

+    plsem = new(pool) Pj_Semaphore_Lock(pool);

+    delete plsem;

+

+    return 0;

+}

+