| 1234567891011121314151617181920212223242526272829303132333435363738394041 | /*******************************************************************************The content of this file includes portions of the AUDIOKINETIC Wwise Technologyreleased in source code form as part of the SDK installer package.Commercial License UsageLicensees holding valid commercial licenses to the AUDIOKINETIC Wwise Technologymay use this file in accordance with the end user license agreement providedwith the software or, alternatively, in accordance with the terms contained in awritten agreement between you and Audiokinetic Inc.  Copyright (c) 2023 Audiokinetic Inc.*******************************************************************************/#pragma once#include <cstdint>#include <future>namespace AK{	namespace WwiseAuthoringAPI	{		template<typename T> bool GetFutureWithTimeout(int timeoutMs, std::future<T>& value, T& out_result)		{			if (value.wait_for(std::chrono::milliseconds(timeoutMs)) != std::future_status::ready)			{				return false;			}			out_result = value.get();			return true;		}		template<typename T> bool GetFutureBlocking(std::future<T>& value, T& out_result)		{			out_result = value.get();			return true;		}	}}
 |