- 博客(2)
- 收藏
- 关注
原创 自己写的一个基于ocilib的c连接池,未经测试
#include "ocilib.h" #include "pthread.h" #define DBFAIL -1 #define NOWAIT 1 #define WAITING 0 #define USE 0 #define NOUSE 1 typedef struct( OCI_Connection *cn; int status; //0
2011-11-25 09:11:18
1762
原创 ocilib连接池
#include "ocilib.h" #define MAX_THREADS 50 #define MAX_CONN 10 #define SIZE_STR 260 void worker(OCI_Thread *thread, void *data) { OCI_Connection *cn = OCI_PoolGetConnection(data, NU
2011-11-21 16:52:09
3593
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人