mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-11-03 23:28:48 +00:00 
			
		
		
		
	Kernel: pass ref in Mutex
This commit is contained in:
		
							parent
							
								
									eec11a94cb
								
							
						
					
					
						commit
						7449ba85a6
					
				
					 9 changed files with 27 additions and 22 deletions
				
			
		| 
						 | 
				
			
			@ -1455,16 +1455,16 @@ void Module::Interface::GetMetaDataFromCia(Kernel::HLERequestContext& ctx) {
 | 
			
		|||
    rb.PushMappedBuffer(output_buffer);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
Module::Module() {
 | 
			
		||||
Module::Module(Core::System& system) {
 | 
			
		||||
    ScanForAllTitles();
 | 
			
		||||
    system_updater_mutex = Kernel::Mutex::Create(false, "AM::SystemUpdaterMutex");
 | 
			
		||||
    system_updater_mutex = system.Kernel().CreateMutex(false, "AM::SystemUpdaterMutex");
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
Module::~Module() = default;
 | 
			
		||||
 | 
			
		||||
void InstallInterfaces(Core::System& system) {
 | 
			
		||||
    auto& service_manager = system.ServiceManager();
 | 
			
		||||
    auto am = std::make_shared<Module>();
 | 
			
		||||
    auto am = std::make_shared<Module>(system);
 | 
			
		||||
    std::make_shared<AM_APP>(am)->InstallAsService(service_manager);
 | 
			
		||||
    std::make_shared<AM_NET>(am)->InstallAsService(service_manager);
 | 
			
		||||
    std::make_shared<AM_SYS>(am)->InstallAsService(service_manager);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -149,7 +149,7 @@ std::string GetMediaTitlePath(Service::FS::MediaType media_type);
 | 
			
		|||
 | 
			
		||||
class Module final {
 | 
			
		||||
public:
 | 
			
		||||
    Module();
 | 
			
		||||
    explicit Module(Core::System& system);
 | 
			
		||||
    ~Module();
 | 
			
		||||
 | 
			
		||||
    class Interface : public ServiceFramework<Interface> {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue