/* 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 (); } /devel/electron4/files/bl-1.2.3'>dependabot/npm_and_yarn/devel/electron4/files/bl-1.2.3 FreeBSD GNOME current development ports (https://github.com/freebsd/freebsd-ports-gnome)
aboutsummaryrefslogtreecommitdiffstats
path: root/lang/erlang14
Commit message (Expand)AuthorAgeFilesLines
* Add support for DESTDIR part I.erwin2006-08-041-4/+4
* Bugfix: ssh_sftp:connect/2,3 hangs when remote the host is unknown.olgeni2006-06-202-0/+17
* Fix list matching problem on 64bit architectures.olgeni2006-06-201-0/+14
* Add sparc64 to ONLY_FOR_ARCHS.olgeni2006-06-201-1/+1
* Upgrade to release R11B-0.olgeni2006-05-2812-110/+140
* Register CONFLICTS with recently added lang/erlang-litegarga2006-05-091-0/+2
* Add support for amd64 (from ports/83001, modified).olgeni2006-03-212-2/+29
* Improve OSVERSION check for threading issues, using 502102 ("5.2-CURRENTolgeni2006-03-211-1/+1
* Upgrade to version R10B-10 (with dialyzer patch).olgeni2006-03-167-49/+64
* Bump PORTREVISION on glib12/gtk12 consumer ports to ease the upgrade path.ade2006-03-071-0/+1
* Upgrade to current bsd.java.mk syntax.olgeni2006-02-141-2/+2
* * Clean up Java support.olgeni2006-02-052-50/+49
* Replace ugly "@unexec rmdir %D... 2>/dev/null || true" with @dirrmtryedwin2006-01-221-2/+2
* Upgrade to version R10B-9.olgeni2005-12-156-75/+40
* Add bugfix for SSL distribution protocol.olgeni2005-11-102-0/+24
* Add SHA256 checksums.olgeni2005-11-10