会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
风无常性 月无常圆
博客园
首页
新随笔
联系
管理
订阅
上一页
1
···
12
13
14
15
16
17
18
19
20
···
23
下一页
2011年10月20日
Ubuntu 10.10安装Vmware Tools
摘要: 1: apt-get install --no-install-recommends open-vm-dkms 2: apt-get install open-vm-tools两步搞定
阅读全文
posted @ 2011-10-20 19:34 凬月
阅读(189)
评论(0)
推荐(0)
2011年9月30日
使用读写锁
摘要: /*FileName:rwlock.cDate:20100310Desc:g++rwlock.c-lpthread-odemo使用读写锁,在读大于写情况下使用读写锁*/#include<stdio.h>#include<stdlib.h>#include<string.h>#include<unistd.h>#include<pthread.h>#include<signal.h>intisRun=1;//程序运行标志structConfigInfo{pthread_rwlock_trwlock;charpath[128+
阅读全文
posted @ 2011-09-30 10:24 凬月
阅读(272)
评论(0)
推荐(0)
用互斥锁传送安全线程参数
摘要: /*FileName:mutex.cDate:20100310Desc:gccmutex.c-lpthread-odemo用互斥锁传送安全线程参数,删除加锁和解锁试试效果*/#include<stdio.h>#include<stdlib.h>#include<string.h>#include<unistd.h>#include<pthread.h>pthread_mutex_tmutex;void*thread_fun(void*arg){intn=*((int*)arg);//已经变量线程内部私有变量了pthread_mutex
阅读全文
posted @ 2011-09-30 10:23 凬月
阅读(185)
评论(0)
推荐(0)
11个字符串Hash函数的C代码
摘要: //为免忘记,记录一下,来自http://www.partow.net/programming/hashfunctions/#StringHashingunsignedintRSHash(char*str,unsignedintlen){unsignedintb=378551;unsignedinta=63689;unsignedinthash=0;unsignedinti=0;for(i=0;i<len;str++,i++){hash=hash*a+(*str);a=a*b;}returnhash;}/*EndOfRSHashFunction*/unsignedintJSHash(ch
阅读全文
posted @ 2011-09-30 09:59 凬月
阅读(476)
评论(0)
推荐(0)
2010年9月2日
获取网络图片缓存的地址
摘要: uses WinINet;Function TForm1.GetCacheVerifyCodeFile(VerifyCodeURL:String; Var CacheVerifyCodeFile:String):Boolean;VarlpEntryInfo: PInternetCacheEntryInfo;dwEntrySize, dwLastError, Hwd: LongWORD; i, j:...
阅读全文
posted @ 2010-09-02 00:49 凬月
阅读(524)
评论(0)
推荐(0)
上一页
1
···
12
13
14
15
16
17
18
19
20
···
23
下一页
CodeForge源码分享