Lines Matching full:section
61 m.lock(); // expected-note 5{{Entering critical section here}} in testBlockInCriticalSectionWithStdMutex()
62 sleep(3); // expected-warning {{Call to blocking function 'sleep' inside of critical section}} in testBlockInCriticalSectionWithStdMutex()
63 // expected-note@-1 {{Call to blocking function 'sleep' inside of critical section}} in testBlockInCriticalSectionWithStdMutex()
64 getc(stream); // expected-warning {{Call to blocking function 'getc' inside of critical section}} in testBlockInCriticalSectionWithStdMutex()
65 // expected-note@-1 {{Call to blocking function 'getc' inside of critical section}} in testBlockInCriticalSectionWithStdMutex()
66 …(str, stream); // expected-warning {{Call to blocking function 'fgets' inside of critical section}} in testBlockInCriticalSectionWithStdMutex()
67 // expected-note@-1 {{Call to blocking function 'fgets' inside of critical section}} in testBlockInCriticalSectionWithStdMutex()
68 …d, buf, count); // expected-warning {{Call to blocking function 'read' inside of critical section}} in testBlockInCriticalSectionWithStdMutex()
69 // expected-note@-1 {{Call to blocking function 'read' inside of critical section}} in testBlockInCriticalSectionWithStdMutex()
70 … count, flags); // expected-warning {{Call to blocking function 'recv' inside of critical section}} in testBlockInCriticalSectionWithStdMutex()
71 // expected-note@-1 {{Call to blocking function 'recv' inside of critical section}} in testBlockInCriticalSectionWithStdMutex()
76 pthread_mutex_lock(mutex); // expected-note 5{{Entering critical section here}} in testBlockInCriticalSectionWithPthreadMutex()
77 sleep(3); // expected-warning {{Call to blocking function 'sleep' inside of critical section}} in testBlockInCriticalSectionWithPthreadMutex()
78 // expected-note@-1 {{Call to blocking function 'sleep' inside of critical section}} in testBlockInCriticalSectionWithPthreadMutex()
79 getc(stream); // expected-warning {{Call to blocking function 'getc' inside of critical section}} in testBlockInCriticalSectionWithPthreadMutex()
80 // expected-note@-1 {{Call to blocking function 'getc' inside of critical section}} in testBlockInCriticalSectionWithPthreadMutex()
81 …(str, stream); // expected-warning {{Call to blocking function 'fgets' inside of critical section}} in testBlockInCriticalSectionWithPthreadMutex()
82 // expected-note@-1 {{Call to blocking function 'fgets' inside of critical section}} in testBlockInCriticalSectionWithPthreadMutex()
83 …d, buf, count); // expected-warning {{Call to blocking function 'read' inside of critical section}} in testBlockInCriticalSectionWithPthreadMutex()
84 // expected-note@-1 {{Call to blocking function 'read' inside of critical section}} in testBlockInCriticalSectionWithPthreadMutex()
85 … count, flags); // expected-warning {{Call to blocking function 'recv' inside of critical section}} in testBlockInCriticalSectionWithPthreadMutex()
86 // expected-note@-1 {{Call to blocking function 'recv' inside of critical section}} in testBlockInCriticalSectionWithPthreadMutex()
89 pthread_mutex_trylock(mutex); // expected-note 5{{Entering critical section here}} in testBlockInCriticalSectionWithPthreadMutex()
90 sleep(3); // expected-warning {{Call to blocking function 'sleep' inside of critical section}} in testBlockInCriticalSectionWithPthreadMutex()
91 // expected-note@-1 {{Call to blocking function 'sleep' inside of critical section}} in testBlockInCriticalSectionWithPthreadMutex()
92 getc(stream); // expected-warning {{Call to blocking function 'getc' inside of critical section}} in testBlockInCriticalSectionWithPthreadMutex()
93 // expected-note@-1 {{Call to blocking function 'getc' inside of critical section}} in testBlockInCriticalSectionWithPthreadMutex()
94 …(str, stream); // expected-warning {{Call to blocking function 'fgets' inside of critical section}} in testBlockInCriticalSectionWithPthreadMutex()
95 // expected-note@-1 {{Call to blocking function 'fgets' inside of critical section}} in testBlockInCriticalSectionWithPthreadMutex()
96 …d, buf, count); // expected-warning {{Call to blocking function 'read' inside of critical section}} in testBlockInCriticalSectionWithPthreadMutex()
97 // expected-note@-1 {{Call to blocking function 'read' inside of critical section}} in testBlockInCriticalSectionWithPthreadMutex()
98 … count, flags); // expected-warning {{Call to blocking function 'recv' inside of critical section}} in testBlockInCriticalSectionWithPthreadMutex()
99 // expected-note@-1 {{Call to blocking function 'recv' inside of critical section}} in testBlockInCriticalSectionWithPthreadMutex()
104 mtx_lock(mutex); // expected-note 5{{Entering critical section here}} in testBlockInCriticalSectionC11Locks()
105 sleep(3); // expected-warning {{Call to blocking function 'sleep' inside of critical section}} in testBlockInCriticalSectionC11Locks()
106 // expected-note@-1 {{Call to blocking function 'sleep' inside of critical section}} in testBlockInCriticalSectionC11Locks()
107 getc(stream); // expected-warning {{Call to blocking function 'getc' inside of critical section}} in testBlockInCriticalSectionC11Locks()
108 // expected-note@-1 {{Call to blocking function 'getc' inside of critical section}} in testBlockInCriticalSectionC11Locks()
109 …(str, stream); // expected-warning {{Call to blocking function 'fgets' inside of critical section}} in testBlockInCriticalSectionC11Locks()
110 // expected-note@-1 {{Call to blocking function 'fgets' inside of critical section}} in testBlockInCriticalSectionC11Locks()
111 …d, buf, count); // expected-warning {{Call to blocking function 'read' inside of critical section}} in testBlockInCriticalSectionC11Locks()
112 // expected-note@-1 {{Call to blocking function 'read' inside of critical section}} in testBlockInCriticalSectionC11Locks()
113 … count, flags); // expected-warning {{Call to blocking function 'recv' inside of critical section}} in testBlockInCriticalSectionC11Locks()
114 // expected-note@-1 {{Call to blocking function 'recv' inside of critical section}} in testBlockInCriticalSectionC11Locks()
117 mtx_timedlock(mutex); // expected-note 5{{Entering critical section here}} in testBlockInCriticalSectionC11Locks()
118 sleep(3); // expected-warning {{Call to blocking function 'sleep' inside of critical section}} in testBlockInCriticalSectionC11Locks()
119 // expected-note@-1 {{Call to blocking function 'sleep' inside of critical section}} in testBlockInCriticalSectionC11Locks()
120 getc(stream); // expected-warning {{Call to blocking function 'getc' inside of critical section}} in testBlockInCriticalSectionC11Locks()
121 // expected-note@-1 {{Call to blocking function 'getc' inside of critical section}} in testBlockInCriticalSectionC11Locks()
122 …(str, stream); // expected-warning {{Call to blocking function 'fgets' inside of critical section}} in testBlockInCriticalSectionC11Locks()
123 // expected-note@-1 {{Call to blocking function 'fgets' inside of critical section}} in testBlockInCriticalSectionC11Locks()
124 …d, buf, count); // expected-warning {{Call to blocking function 'read' inside of critical section}} in testBlockInCriticalSectionC11Locks()
125 // expected-note@-1 {{Call to blocking function 'read' inside of critical section}} in testBlockInCriticalSectionC11Locks()
126 … count, flags); // expected-warning {{Call to blocking function 'recv' inside of critical section}} in testBlockInCriticalSectionC11Locks()
127 // expected-note@-1 {{Call to blocking function 'recv' inside of critical section}} in testBlockInCriticalSectionC11Locks()
130 mtx_trylock(mutex); // expected-note 5{{Entering critical section here}} in testBlockInCriticalSectionC11Locks()
131 sleep(3); // expected-warning {{Call to blocking function 'sleep' inside of critical section}} in testBlockInCriticalSectionC11Locks()
132 // expected-note@-1 {{Call to blocking function 'sleep' inside of critical section}} in testBlockInCriticalSectionC11Locks()
133 getc(stream); // expected-warning {{Call to blocking function 'getc' inside of critical section}} in testBlockInCriticalSectionC11Locks()
134 // expected-note@-1 {{Call to blocking function 'getc' inside of critical section}} in testBlockInCriticalSectionC11Locks()
135 …(str, stream); // expected-warning {{Call to blocking function 'fgets' inside of critical section}} in testBlockInCriticalSectionC11Locks()
136 // expected-note@-1 {{Call to blocking function 'fgets' inside of critical section}} in testBlockInCriticalSectionC11Locks()
137 …d, buf, count); // expected-warning {{Call to blocking function 'read' inside of critical section}} in testBlockInCriticalSectionC11Locks()
138 // expected-note@-1 {{Call to blocking function 'read' inside of critical section}} in testBlockInCriticalSectionC11Locks()
139 … count, flags); // expected-warning {{Call to blocking function 'recv' inside of critical section}} in testBlockInCriticalSectionC11Locks()
140 // expected-note@-1 {{Call to blocking function 'recv' inside of critical section}} in testBlockInCriticalSectionC11Locks()
146 m.lock(); // expected-note 1{{Entering critical section here}} in testMultipleBlockingCalls()
147 sleep(1); // expected-warning {{Call to blocking function 'sleep' inside of critical section}} in testMultipleBlockingCalls()
148 // expected-note@-1 {{Call to blocking function 'sleep' inside of critical section}} in testMultipleBlockingCalls()
155 m.lock(); // expected-note 2{{Entering critical section here}} in testMultipleMutexesMultipleBlockingCalls()
156 n.lock(); // expected-note 2{{Entering critical section here}} in testMultipleMutexesMultipleBlockingCalls()
157 k.lock(); // expected-note 1{{Entering critical section here}} in testMultipleMutexesMultipleBlockingCalls()
158 sleep(1); // expected-warning {{Call to blocking function 'sleep' inside of critical section}} in testMultipleMutexesMultipleBlockingCalls()
159 // expected-note@-1 {{Call to blocking function 'sleep' inside of critical section}} in testMultipleMutexesMultipleBlockingCalls()
161 sleep(2); // expected-warning {{Call to blocking function 'sleep' inside of critical section}} in testMultipleMutexesMultipleBlockingCalls()
162 // expected-note@-1 {{Call to blocking function 'sleep' inside of critical section}} in testMultipleMutexesMultipleBlockingCalls()
168 m.lock(); // expected-note {{Entering critical section for the 1st time here}} in testRecursiveAcquisition()
169 m.lock(); // expected-note {{Entering critical section for the 2nd time here}} in testRecursiveAcquisition()
170 sleep(1); // expected-warning {{Call to blocking function 'sleep' inside of critical section}} in testRecursiveAcquisition()
171 // expected-note@-1 {{Call to blocking function 'sleep' inside of critical section}} in testRecursiveAcquisition()
178 m.lock(); // expected-note 1{{Entering critical section for the 1st time here}} in testRecursiveAcquisitionWithMultipleBlockingCalls()
179 // expected-note@-1 {{Entering critical section here}} in testRecursiveAcquisitionWithMultipleBlockingCalls()
180 m.lock(); // expected-note 1{{Entering critical section for the 2nd time here}} in testRecursiveAcquisitionWithMultipleBlockingCalls()
181 sleep(1); // expected-warning {{Call to blocking function 'sleep' inside of critical section}} in testRecursiveAcquisitionWithMultipleBlockingCalls()
182 // expected-note@-1 {{Call to blocking function 'sleep' inside of critical section}} in testRecursiveAcquisitionWithMultipleBlockingCalls()
184 // this next 'sleep' call is only in the critical section of the first lock in testRecursiveAcquisitionWithMultipleBlockingCalls()
185 sleep(2); // expected-warning {{Call to blocking function 'sleep' inside of critical section}} in testRecursiveAcquisitionWithMultipleBlockingCalls()
186 // expected-note@-1 {{Call to blocking function 'sleep' inside of critical section}} in testRecursiveAcquisitionWithMultipleBlockingCalls()
192 m.lock(); // expected-note 1{{Entering critical section here}} in testRecursiveAcquisitionWithMultipleMutexes()
193 n.lock(); // expected-note 2{{Entering critical section here}} in testRecursiveAcquisitionWithMultipleMutexes()
194 sleep(1); // expected-warning {{Call to blocking function 'sleep' inside of critical section}} in testRecursiveAcquisitionWithMultipleMutexes()
195 // expected-note@-1 {{Call to blocking function 'sleep' inside of critical section}} in testRecursiveAcquisitionWithMultipleMutexes()
197 // this next 'sleep' call is only in the critical section of mutex 'n' in testRecursiveAcquisitionWithMultipleMutexes()
198 sleep(2); // expected-warning {{Call to blocking function 'sleep' inside of critical section}} in testRecursiveAcquisitionWithMultipleMutexes()
199 // expected-note@-1 {{Call to blocking function 'sleep' inside of critical section}} in testRecursiveAcquisitionWithMultipleMutexes()
206 m.lock(); // expected-note 3{{Entering critical section here}} in testNestedMutexes()
207 n.lock(); // expected-note 2{{Entering critical section here}} in testNestedMutexes()
208 k.lock(); // expected-note 1{{Entering critical section here}} in testNestedMutexes()
209 sleep(1); // expected-warning {{Call to blocking function 'sleep' inside of critical section}} in testNestedMutexes()
210 // expected-note@-1 {{Call to blocking function 'sleep' inside of critical section}} in testNestedMutexes()
212 sleep(2); // expected-warning {{Call to blocking function 'sleep' inside of critical section}} in testNestedMutexes()
213 // expected-note@-1 {{Call to blocking function 'sleep' inside of critical section}} in testNestedMutexes()
215 sleep(3); // expected-warning {{Call to blocking function 'sleep' inside of critical section}} in testNestedMutexes()
216 // expected-note@-1 {{Call to blocking function 'sleep' inside of critical section}} in testNestedMutexes()
225 m.lock(); // expected-note {{Entering critical section here}} in testNonOverlappingMutexes()
226 sleep(1); // expected-warning {{Call to blocking function 'sleep' inside of critical section}} in testNonOverlappingMutexes()
227 // expected-note@-1 {{Call to blocking function 'sleep' inside of critical section}} in testNonOverlappingMutexes()
233 m.lock(); // expected-note {{Entering critical section here}} in testMixedMutexLocksWithIntermittentUnlock()
234 n.lock(); // the problem is not is this lock's critical section in testMixedMutexLocksWithIntermittentUnlock()
238 sleep(1); // expected-warning {{Call to blocking function 'sleep' inside of critical section}} in testMixedMutexLocksWithIntermittentUnlock()
239 // expected-note@-1 {{Call to blocking function 'sleep' inside of critical section}} in testMixedMutexLocksWithIntermittentUnlock()
244 sleep(1000); // expected-warning {{Call to blocking function 'sleep' inside of critical section}} in f()
245 // expected-note@-1 {{Call to blocking function 'sleep' inside of critical section}} in f()
250 m.lock(); // expected-note {{Entering critical section here}} in testBlockInCriticalSectionInterProcedural()
261 m.lock(); // expected-note {{Entering critical section here}} in testBlockInCriticalSectionUnexpectedUnlock()
262 sleep(2); // expected-warning {{Call to blocking function 'sleep' inside of critical section}} in testBlockInCriticalSectionUnexpectedUnlock()
263 // expected-note@-1 {{Call to blocking function 'sleep' inside of critical section}} in testBlockInCriticalSectionUnexpectedUnlock()
271 std::lock_guard<std::mutex> lock(g_mutex); // expected-note {{Entering critical section here}} in testBlockInCriticalSectionLockGuard()
272 sleep(1); // expected-warning {{Call to blocking function 'sleep' inside of critical section}} in testBlockInCriticalSectionLockGuard()
273 // expected-note@-1 {{Call to blocking function 'sleep' inside of critical section}} in testBlockInCriticalSectionLockGuard()
286 std::unique_lock<std::mutex> lock(g_mutex); // expected-note {{Entering critical section here}} in testBlockInCriticalSectionUniqueLock()
287 sleep(1); // expected-warning {{Call to blocking function 'sleep' inside of critical section}} in testBlockInCriticalSectionUniqueLock()
288 // expected-note@-1 {{Call to blocking function 'sleep' inside of critical section}} in testBlockInCriticalSectionUniqueLock()
301 if (pthread_mutex_trylock(m) == 0) { // expected-note 2 {{Entering critical section here}} in testTrylockCurrentlyFalsePositive()
302 … // FIXME: we are entering the critical section only in the true branch in testTrylockCurrentlyFalsePositive()
303 sleep(10); // expected-warning {{Call to blocking function 'sleep' inside of critical section}} in testTrylockCurrentlyFalsePositive()
304 // expected-note@-1 {{Call to blocking function 'sleep' inside of critical section}} in testTrylockCurrentlyFalsePositive()
307 sleep(10); // expected-warning {{Call to blocking function 'sleep' inside of critical section}} in testTrylockCurrentlyFalsePositive()
308 // expected-note@-1 {{Call to blocking function 'sleep' inside of critical section}} in testTrylockCurrentlyFalsePositive()