Displaying 2 results from an estimated 2 matches for "reader_thread".
Did you mean:
reader_threads
2019 Jun 03
0
[PATCH libnbd discussion only 5/5] examples: Add concurrent writer example.
...+ int argc; /* Command line parameters. */
+ char **argv;
+ int status; /* Return status. */
+ unsigned requests; /* Total number of requests made. */
+ unsigned most_in_flight; /* Most requests seen in flight. */
+};
+
+static void *start_reader_thread (void *arg);
+
+int
+main (int argc, char *argv[])
+{
+ struct nbd_handle *nbd;
+ pthread_t reader_threads[NR_MULTI_CONN];
+ struct reader_status reader_status[NR_MULTI_CONN];
+ size_t i;
+ int err;
+ unsigned requests, most_in_flight, errors;
+
+ srand (time (NULL));
+
+ if (argc < 2 ||...
2019 Jun 03
10
[PATCH libnbd discussion only 0/5] api: Implement concurrent writer.
This works, but there's no time saving and I'm still investigating
whether it does what I think it does. Nevertheless I thought I would
post it because it (probably) implements the idea I had last night
outlined in:
https://www.redhat.com/archives/libguestfs/2019-June/msg00010.html
The meat of the change is patch 4. Patch 5 is an example which I
would probably fold into patch 4 for