mutex.cpp

来自「含有多种公开密钥算法、多种块加密、多种数据流加密、多种HASH函数、多种Chec」· C++ 代码 · 共 37 行

CPP
37
字号
/************************************************** Mutex Factory Source File                      ** (C) 1999-2002 The Botan Project                **************************************************/#include <botan/mutex.h>#include <botan/mux_def.h>namespace Botan {namespace {Mutex* mutex_factory = 0;}/************************************************** Get a Mutex                                    **************************************************/Mutex* get_mutex()   {   if(mutex_factory == 0)      mutex_factory = new Default_Mutex;   return mutex_factory->clone();   }/************************************************** Set the Mutex type                             **************************************************/void set_mutex_type(Mutex* mutex)   {   delete mutex_factory;   mutex_factory = mutex;   }}

⌨️ 快捷键说明

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