dllserver.cpp

来自「firtext搜索引擎源码」· C++ 代码 · 共 29 行

CPP
29
字号
#include "com/Com.h"#include "com/comerror.h"#include <assert.h>//static uint_least32_t lock_count = 0;static uint32_t lock_count = 0;FX_WINOLEAPI firtex::com::DllCanUnloadNowImpl(){	return ( lock_count > 0 ) ? FX_S_FALSE : FX_S_OK;}FX_WINOLEAPI firtex::com::DllLockServerImpl( int32_t fLock ){	// need to add thread safety	if ( fLock ) {		++lock_count;		assert( lock_count != 0 );	}	else {		assert( lock_count != 0 );		--lock_count;	}	return FX_S_OK;}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?