Lines Matching defs:buffers
34 * and M consumer threads. The are B buffers per producer threads circulating
125 " [-b B] Number of buffers per producer (2)\n"
127 "usage: pool [-b B] Number of buffers per producer (2)\n"
129 " [-i I] Number of buffers to produce (10000)\n"
324 int buffers = 2;
347 buffers = atoi(optarg);
401 buffers, s_if_plural(buffers));
402 if (buffers * pages < 256)
403 mutter("(total %dkB)\n", buffers * pages * 4);
405 mutter("(total %dMB)\n", buffers * pages / 256);
439 data = (int *) malloc(buffers * pages * 4096);
441 /* Set up the empty work buffers */
442 work_array = (work_t *) malloc(buffers * sizeof(work_t));
443 for (j = 0; j < buffers; j++) {