mirror of
				https://github.com/Icinga/icinga2.git
				synced 2025-11-04 05:34:12 +01:00 
			
		
		
		
	
							parent
							
								
									4cac1c8d7c
								
							
						
					
					
						commit
						b863a84471
					
				@ -62,7 +62,7 @@ public:
 | 
			
		||||
 | 
			
		||||
#ifdef _WIN32
 | 
			
		||||
#	ifdef _WIN64
 | 
			
		||||
		while (InterlockedCompareExchange64(&object->m_Mutex, I2MUTEX_LOCKED, I2MUTEX_UNLOCKED) != I2MUTEX_UNLOCKED) {
 | 
			
		||||
		while (InterlockedCompareExchange64((LONGLONG *)&object->m_Mutex, I2MUTEX_LOCKED, I2MUTEX_UNLOCKED) != I2MUTEX_UNLOCKED) {
 | 
			
		||||
#	else /* _WIN64 */
 | 
			
		||||
		while (InterlockedCompareExchange(&object->m_Mutex, I2MUTEX_LOCKED, I2MUTEX_UNLOCKED) != I2MUTEX_UNLOCKED) {
 | 
			
		||||
#	endif /* _WIN64 */
 | 
			
		||||
@ -84,7 +84,7 @@ public:
 | 
			
		||||
		mtx->lock();
 | 
			
		||||
#ifdef _WIN32
 | 
			
		||||
#	ifdef _WIN64
 | 
			
		||||
		InterlockedCompareExchange64(&object->m_Mutex, reinterpret_cast<LONGLONG>(mtx), I2MUTEX_LOCKED);
 | 
			
		||||
		InterlockedCompareExchange64((LONGLONG *)&object->m_Mutex, reinterpret_cast<LONGLONG>(mtx), I2MUTEX_LOCKED);
 | 
			
		||||
#	else /* _WIN64 */
 | 
			
		||||
		InterlockedCompareExchange(&object->m_Mutex, reinterpret_cast<LONG>(mtx), I2MUTEX_LOCKED);
 | 
			
		||||
#	endif /* _WIN64 */
 | 
			
		||||
 | 
			
		||||
@ -86,7 +86,7 @@ static Array::Ptr StringSplit(const String& delims)
 | 
			
		||||
	return result;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
static Value StringFind(const std::vector<Value>& args)
 | 
			
		||||
static int StringFind(const std::vector<Value>& args)
 | 
			
		||||
{
 | 
			
		||||
	ScriptFrame *vframe = ScriptFrame::GetCurrentFrame();
 | 
			
		||||
	String self = vframe->Self;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user