mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-03-16 14:05:28 +00:00
Directory Structure [step 1]: moving files
working on #672 NOTE: This commit can't be compiled!!
This commit is contained in:
38
deps/acelite/ace/TSS_Adapter.cpp
vendored
Normal file
38
deps/acelite/ace/TSS_Adapter.cpp
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
/**
|
||||
* @file TSS_Adapter.cpp
|
||||
*
|
||||
* Originally in Synch.cpp
|
||||
*
|
||||
* @author Douglas C. Schmidt <schmidt@cs.wustl.edu>
|
||||
*/
|
||||
|
||||
#include "ace/TSS_Adapter.h"
|
||||
|
||||
ACE_BEGIN_VERSIONED_NAMESPACE_DECL
|
||||
|
||||
ACE_TSS_Adapter::ACE_TSS_Adapter (void *object, ACE_THR_DEST f)
|
||||
: ts_obj_ (object),
|
||||
func_ (f)
|
||||
{
|
||||
}
|
||||
|
||||
void
|
||||
ACE_TSS_Adapter::cleanup (void)
|
||||
{
|
||||
(*this->func_)(this->ts_obj_); // call cleanup routine for ts_obj_
|
||||
}
|
||||
|
||||
ACE_END_VERSIONED_NAMESPACE_DECL
|
||||
|
||||
extern "C" ACE_Export void
|
||||
ACE_TSS_C_cleanup (void *object)
|
||||
{
|
||||
if (object != 0)
|
||||
{
|
||||
ACE_TSS_Adapter * const tss_adapter = (ACE_TSS_Adapter *) object;
|
||||
// Perform cleanup on the real TS object.
|
||||
tss_adapter->cleanup ();
|
||||
// Delete the adapter object.
|
||||
delete tss_adapter;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user