Lines Matching full:count
13 static int count; variable
31 count++; in inc_count()
34 * Check the value of count and signal waiting thread when in inc_count()
39 if (count == COUNT_LIMIT) { in inc_count()
40 printk("%s: thread %ld, count = %d Threshold reached.", in inc_count()
41 __func__, my_id, count); in inc_count()
45 printk("%s: thread %ld, count = %d, unlocking mutex\n", in inc_count()
46 __func__, my_id, count); in inc_count()
61 while (count < COUNT_LIMIT) { in watch_count()
62 printk("%s: thread %ld Count= %d. Going into wait...\n", in watch_count()
63 __func__, my_id, count); in watch_count()
66 printk("%s: thread %ld Condition signal received. Count= %d\n", in watch_count()
67 __func__, my_id, count); in watch_count()
69 printk("%s: thread %ld Updating the value of count...\n", in watch_count()
71 count += 125; in watch_count()
72 printk("%s: thread %ld count now = %d.\n", __func__, my_id, count); in watch_count()
82 count = 0; in main()
101 printk("Main(): Waited and joined with %d threads. Final value of count = %d. Done.\n", in main()
102 NUM_THREADS, count); in main()