This program shows the results from several background lookups, while printing time in the foreground.
More...
|
static void | usage (char *argv[]) |
| usage information for asynclook
|
|
static void | print_result (struct lookinfo *info) |
| print result from lookup nicely
|
|
static void | lookup_is_done (void *mydata, int err, struct ub_result *result) |
| this is a function of type ub_callback_t
|
|
static void | checkerr (const char *desc, int err) |
| check error, if bad, exit with error message
|
|
static void | ext_check_result (const char *desc, int err, struct ub_result *result) |
| check result structure for the 'correct' answer
|
|
static void | ext_callback (void *mydata, int err, struct ub_result *result) |
| extended bg result callback, this function is ub_callback_t
|
|
static void * | ext_thread (void *arg) |
| extended thread worker
|
|
static int | ext_test (struct ub_ctx *ctx, int argc, char **argv) |
| perform extended threaded test
|
|
int | main (int argc, char **argv) |
| main program for asynclook
|
|
This program shows the results from several background lookups, while printing time in the foreground.