Changes imported from Abseil "staging" branch:
- 33cefac68ed8720bd7468e59b8fd9a13d7b7a8bf Fix example in comment of absl::Condition. by Abseil Team <absl-team@google.com> - 2c95e2895d6bf36b712c0b72cf2a42cbe5442a70 Internal change by Abseil Team <absl-team@google.com> GitOrigin-RevId: 33cefac68ed8720bd7468e59b8fd9a13d7b7a8bf Change-Id: I34c1a4976c019a548dc94a2a9cf471243fcb623c
This commit is contained in:
		
							parent
							
								
									af8c291d9a
								
							
						
					
					
						commit
						b05b79538f
					
				
					 2 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
					@ -10,6 +10,7 @@ GCC_FLAGS = [
 | 
				
			||||||
    "-Wcast-qual",
 | 
					    "-Wcast-qual",
 | 
				
			||||||
    "-Wconversion-null",
 | 
					    "-Wconversion-null",
 | 
				
			||||||
    "-Wmissing-declarations",
 | 
					    "-Wmissing-declarations",
 | 
				
			||||||
 | 
					    "-Wno-sign-compare",
 | 
				
			||||||
    "-Woverlength-strings",
 | 
					    "-Woverlength-strings",
 | 
				
			||||||
    "-Wpointer-arith",
 | 
					    "-Wpointer-arith",
 | 
				
			||||||
    "-Wunused-local-typedefs",
 | 
					    "-Wunused-local-typedefs",
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -598,7 +598,7 @@ class SCOPED_LOCKABLE WriterMutexLock {
 | 
				
			||||||
//   // assume count_ is not internal reference count
 | 
					//   // assume count_ is not internal reference count
 | 
				
			||||||
//   int count_ GUARDED_BY(mu_);
 | 
					//   int count_ GUARDED_BY(mu_);
 | 
				
			||||||
//
 | 
					//
 | 
				
			||||||
//   mu_.LockWhen(Condition(+[](const int* count) { return *count == 0; },
 | 
					//   mu_.LockWhen(Condition(+[](int* count) { return *count == 0; },
 | 
				
			||||||
//         &count_));
 | 
					//         &count_));
 | 
				
			||||||
//
 | 
					//
 | 
				
			||||||
// When multiple threads are waiting on exactly the same condition, make sure
 | 
					// When multiple threads are waiting on exactly the same condition, make sure
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue