1#ifndef __DCL_LIB_STATE_H__
2#define __DCL_LIB_STATE_H__ 20061115
4#ifndef __DCL_CONFIG_H__
5#include <dcl/_Config.h>
27 pthread_mutex_t m_mutex;
29 CRITICAL_SECTION m_cs;
31 const char* m_pszName;
34#if __DCL_HAVE_ALLOC_DEBUG
36#define __DCL_DEBUG_PATH_MAX 76
47 struct Node :
public NodeBase
49 unsigned long uThreadId;
51 DCLAllocFunction allocFunction;
52 char_t szFileName[__DCL_DEBUG_PATH_MAX + 3 + 1];
57 void assignFileName(
const char_t* _filename);
62 NodeBase m_masterNode;
67 Node* allocNode(
size_t nSize,
69 DCLAllocFunction allocFunction,
74 void* addTail(Node* pNewNode);
79 Node* reallocNode(Node* pNode,
94 Node* next(Node*& pNode)
const;
97 Node* prev(Node*& pNode)
const;
99 size_t count()
const {
return m_nCount; }
103 Node* find(
const void* p)
const;
104 Node* rfind(
const void* p)
const;
112 DCLAllocFunction allocFunction,
123 DCLAllocFunction allocFunction,
129 void erase(Node* pNode);
167 size_t count()
const;
191#define MAP_THREAD_OUTPUT_BUCKET_COUNT 50
194#if __DCL_HAVE_ALLOC_DEBUG
void(* DCLCleanupCallback)()
void CharsetConvertException *__fields clear()
InternalMutex(const char *pszName)
size_t bucketNumber(const void *key) const
PtrHashMap(size_t nBuckets)
Node * find(const void *key) const
const void *& operator[](const void *key)
DCLCleanupCallback pfnSQLCleanup
InternalMutex lockSQLDriverPool