Hi, pals!
I am puzzled at the callback method of Squid. Such is the
routines that Squid is using for callback functions,
* foo = xcalloc(sizeof(foo));
* cbdataAdd(foo);
* ...
* cbdataLock(foo);
* some_blocking_operation(..., callback_func, foo);
* ...
* some_blocking_operation_completes()
* if (cbdataValid(foo))
* callback_func(..., foo)
* cbdataUnlock(foo);
* ...
* cbdataFree(foo);
I want to see an example that when some_blocking_operation is
called and when some_blocking_operation_completes() is called
and when finally callback_func(..., foo) is called.
Who can give me a description of simple example that Squid is using?
Best regards,
George Ma
Received on Fri Apr 19 2002 - 06:33:33 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:15:13 MST