forked from mirrors/gecko-dev
		
	Bug 1683973 - make VrService::mShutdownRequested atomic. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D104109
This commit is contained in:
		
							parent
							
								
									efe40d9e8d
								
							
						
					
					
						commit
						1380021cac
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -9,6 +9,7 @@ | ||||||
| 
 | 
 | ||||||
| #include "moz_external_vr.h" | #include "moz_external_vr.h" | ||||||
| #include "base/process.h"  // for base::ProcessHandle | #include "base/process.h"  // for base::ProcessHandle | ||||||
|  | #include "mozilla/Atomics.h" | ||||||
| #include "mozilla/TimeStamp.h" | #include "mozilla/TimeStamp.h" | ||||||
| #include "mozilla/UniquePtr.h" | #include "mozilla/UniquePtr.h" | ||||||
| #include "nsCOMPtr.h" | #include "nsCOMPtr.h" | ||||||
|  | @ -63,7 +64,7 @@ class VRService { | ||||||
|   // Only ever accessed on the service thread.
 |   // Only ever accessed on the service thread.
 | ||||||
|   UniquePtr<mozilla::BackgroundHangMonitor> mBackgroundHangMonitor; |   UniquePtr<mozilla::BackgroundHangMonitor> mBackgroundHangMonitor; | ||||||
| 
 | 
 | ||||||
|   bool mShutdownRequested; |   Atomic<bool> mShutdownRequested; | ||||||
| 
 | 
 | ||||||
|   // Note: mShmem doesn't support RefPtr; thus, do not share this private
 |   // Note: mShmem doesn't support RefPtr; thus, do not share this private
 | ||||||
|   // pointer so that its lifetime can still be controlled by VRService
 |   // pointer so that its lifetime can still be controlled by VRService
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue
	
	 Alexis Beingessner
						Alexis Beingessner