aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test8.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test8.c')
-rw-r--r--tests/test8.c75
1 files changed, 0 insertions, 75 deletions
diff --git a/tests/test8.c b/tests/test8.c
deleted file mode 100644
index aa7debdba9..0000000000
--- a/tests/test8.c
+++ /dev/null
@@ -1,75 +0,0 @@
-/* test posix thread folder proxy */
-
-
-#include "camel.h"
-
-CamelThreadProxy *proxy;
-CamelFuncDef *func_def;
-
-
-void
-test_sync_func (int num)
-{
- printf ("Sync function number %d\n", num);
- printf ("Sync function : current thread : %d\n", pthread_self ());
-
-}
-
-
-void
-test_async_cb (int num)
-{
- printf ("Callback number %d\n", num);
- printf ("Callback : current thread : %d\n", pthread_self ());
-}
-
-void
-test_async_func (int num)
-{
- CamelOp *cb;
-
- printf ("Async function number %d\n", num);
- printf ("Async function : current thread : %d\n", pthread_self ());
- sleep (1);
- cb = camel_marshal_create_op (func_def, test_async_cb, num);
- camel_thread_proxy_push_cb (proxy, cb);
-
-
-}
-
-int
-main (int argc, char **argv)
-{
- int i;
- CamelOp *op;
-
- camel_init ();
-
- func_def =
- camel_func_def_new (camel_marshal_NONE__INT,
- 1,
- GTK_TYPE_INT);
-
- printf ("--== Testing Simple marshalling system ==--\n");
- for (i=0; i<5; i++) {
- printf ("Iterration number %d\n", i);
- op = camel_marshal_create_op (func_def, test_sync_func, i);
- camel_op_run (op);
- camel_op_free (op);
-
- }
- printf ("\n\n");
-
- proxy = camel_thread_proxy_new ();
-
- printf ("--== Testing Asynchronous Operation System ==--\n");
- for (i=0; i<5; i++) {
- printf ("Pushing async operation number %d for execution\n", i);
- op = camel_marshal_create_op (func_def, test_async_func, i);
- camel_thread_proxy_push_op (proxy, op);
- }
- printf ("\n\n");
- printf ("--== Operations execution planned ==--\n");
- gtk_main ();
-}
-
>+54 * Update to KDE 3.5.5 / KOffice 1.6.1lofi2006-12-201-3/+3 * KDE 3.5.4 / KOffice 1.5.2lofi2006-09-132-3/+6 * Update to KDE 3.5.3lofi2006-06-063-162/+100 * Update to KDE 3.5.0lofi2006-01-091-0/+1 * Update to KDE 3.4.2 / KOffice 1.4.1lofi2005-08-011-1/+1 * Update to KDE 3.3.2lofi2004-12-141-1/+1 * Update to KDE 3.3lofi2004-08-311-1/+1 * Update to KDE 3.2.1 / QT 3.3.1lofi2004-03-102-2/+1 * Update to KDE 3.2.0lofi2004-02-053-5/+6 * Add USE_GETTEXT and bump PORTREVISION.marcus2004-02-041-2/+2 * Now gettext 0.12.1 is gettext-old.trevor2004-01-241-1/+1 * Another last minute change. Size/date stamp changes only.will2003-09-281-1/+1