mirror of
				https://github.com/Atmosphere-NX/Atmosphere-libs.git
				synced 2025-10-31 11:36:02 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			52 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			52 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
| /*
 | |
|  * Copyright (c) Atmosphère-NX
 | |
|  *
 | |
|  * This program is free software; you can redistribute it and/or modify it
 | |
|  * under the terms and conditions of the GNU General Public License,
 | |
|  * version 2, as published by the Free Software Foundation.
 | |
|  *
 | |
|  * This program is distributed in the hope it will be useful, but WITHOUT
 | |
|  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 | |
|  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
 | |
|  * more details.
 | |
|  *
 | |
|  * You should have received a copy of the GNU General Public License
 | |
|  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 | |
|  */
 | |
| #pragma once
 | |
| #include <stratosphere.hpp>
 | |
| 
 | |
| namespace ams::os::impl {
 | |
| 
 | |
|     class InterruptEventMacosImpl {
 | |
|         private:
 | |
|             NativeHandle m_handle;
 | |
|             bool m_manual_clear;
 | |
|         public:
 | |
|             explicit InterruptEventMacosImpl(InterruptName name, EventClearMode mode) {
 | |
|                 AMS_UNUSED(name, mode);
 | |
|                 AMS_ABORT("TODO");
 | |
|             }
 | |
| 
 | |
|             ~InterruptEventMacosImpl() {
 | |
|                 AMS_ABORT("TODO");
 | |
|             }
 | |
| 
 | |
|             void Clear() { AMS_ABORT("TODO"); }
 | |
|             void Wait() { AMS_ABORT("TODO"); }
 | |
|             bool TryWait() { AMS_ABORT("TODO"); }
 | |
|             bool TimedWait(TimeSpan) { AMS_ABORT("TODO"); }
 | |
| 
 | |
|             TriBool IsSignaled() {
 | |
|                 return TriBool::Undefined;
 | |
|             }
 | |
| 
 | |
|             NativeHandle GetHandle() const {
 | |
|                 return m_handle;
 | |
|             }
 | |
|     };
 | |
| 
 | |
|     using InterruptEventTargetImpl = InterruptEventMacosImpl;
 | |
| 
 | |
| }
 |