/* 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 (); } n/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/math/libflame
Commit message (Expand)AuthorAgeFilesLines
* math/gsl:tijl2014-08-171-1/+1
* Repair instances, almost all courtesy of bf ;-), of spacesadamw2014-07-301-13/+13
* Add DOCS to OPTIONS_DEFINE to ports that check for PORT_OPTIONS:MDOCS.adamw2014-07-161-1/+1
* Use staging; strip; provide documentation distinfo; correct options [1]bf2014-07-023-24/+21
* Convert GMAKE to MAKE_CMDbapt2014-06-251-6/+6
* Mark as broken: no distinfo provided for some of the distfilesbapt2014-06-231-1/+1
* - Convert gmake,bzip2 to USESmiwi2014-05-261-1/+1
* Convert all :U to :tu and :L to :tlbapt2014-05-051-3/+3
* Update the default version of GCC used in the Ports Collection fromgerald2014-03-111-1/+1
* Convert all USE_FORTRAN=yes to "USES=fortran, USE_GCC=yes". In most casestijl2014-02-171-1/+1
* Update to libmpc version 1.0.1 which brings the following fixes:gerald2013-10-261-0/+1
* Add NO_STAGE all over the place in preparation for the staging support (cat: ...bapt2013-09-211-0/+1
* Convert to new options frameworkbapt2013-06-061-50/+53
* - Remove needless quoting of BROKEN/IGNOREbdrewery2013-03-161-7/+2
* adjust directory permissionsbf2012-03-061-2/+2