上一页 1 ··· 52 53 54 55 56 57 58 59 60 ··· 73 下一页
摘要: # Doxyfile 1.7.2# This file describes the settings to be used by the documentation system# doxygen (www.doxygen.org) for a project## All text after a hash (#) is considered a comment and will be ignored# The format is:# TAG = value [value, ...]# For lists items can also be appended using:# TAG += va 阅读全文
posted @ 2011-07-29 17:54 wangkangluo1 阅读(373) 评论(0) 推荐(0) 编辑
摘要: # Doxyfile 1.6.3# This file describes the settings to be used by the documentation system# doxygen (www.doxygen.org) for a project## All text after a hash (#) is considered a comment and will be ignored# The format is:# TAG = value [value, ...]# For lists items can also be appended using:# TAG += va 阅读全文
posted @ 2011-07-29 17:15 wangkangluo1 阅读(288) 评论(0) 推荐(0) 编辑
摘要: 因为类似的问题至少碰到3次以上,虽然很简单但是每次都花了不少时间来定位,所以决定写个demo来演示一下:)程序逻辑比较简单,主线程读入一个整数,分别有两个线程对这个整数求1~n的累加和。代码如下:#include<iostream>#include<pthread.h>#include<string>#include<unistd.h>usingnamespacestd;intNumber=0;pthread_mutex_tNMutex;pthread_cond_tNCond;void*thread1(void*arg){pthread_deta 阅读全文
posted @ 2011-07-28 13:55 wangkangluo1 阅读(1321) 评论(1) 推荐(0) 编辑
摘要: 参考地址:http://blog.csdn.net/jiazhen/article/details/4293754#include <stdio.h> #include <stdlib.h> #include <semaphore.h> #include <pthread.h> sem_t smt; void DisplayData() { printf ("Display a frame/n"); } void *ThreadFuncDisplay(void *arg) { while (1){ printf (" 阅读全文
posted @ 2011-07-28 11:55 wangkangluo1 阅读(701) 评论(0) 推荐(0) 编辑
摘要: 参考地址:http://hi.baidu.com/luxey/blog/item/41c802085918a1980a7b8292.html#include<unistd.h>#include<signal.h>void handler() { printf("hello\n");}main(){ int i; signal(SIGALRM,handler); alarm(5); for(i=1;i<7;i++) { printf("sleep %d ...\n",i); sleep(1); }} 1. alarm(设置信号 阅读全文
posted @ 2011-07-28 11:21 wangkangluo1 阅读(1203) 评论(0) 推荐(0) 编辑
摘要: 原文地址:下午实验编写了使用pthread_kill函数检测一个线程是否还活着的程序,在linux环境下gcc编译通过,现将代码贴在下面:/*******************************pthread_kill.c*******************************//******************************* pthread_kill.c *******************************/#include <stdio.h>#include <stdlib.h>#include <pthread.h&g 阅读全文
posted @ 2011-07-28 11:16 wangkangluo1 阅读(4597) 评论(0) 推荐(0) 编辑
摘要: my log4crc<?xml version="1.0" encoding="ISO-8859-1"?><!DOCTYPE log4c SYSTEM ""><log4c version="1.2.1"><config><bufsize>0</bufsize><debug level="2"/><nocleanup>0</nocleanup><reread>1</rere 阅读全文
posted @ 2011-07-27 19:07 wangkangluo1 阅读(563) 评论(0) 推荐(0) 编辑
摘要: 始<?xml version="1.0" encoding="ISO-8859-1"?><!DOCTYPE log4c SYSTEM ""><log4c version="1.2.1"> <config> <bufsize>0</bufsize> <debug level="2"/> <nocleanup>0</nocleanup> <reread>1</reread&g 阅读全文
posted @ 2011-07-27 17:44 wangkangluo1 阅读(3731) 评论(2) 推荐(0) 编辑
摘要: 原文地址:http://coon.blogbus.com/logs/2039658.html下面这张gif就是emacs的msf-abbrev的功能演示,很强吧?呵呵这是作者的主页。要配置出这样的效果可以按照以下几步来做:下载msf-abbrev.el下载glibc-abbrevs.tar.gz在你的主目录下新建一个emacs文件夹将上述两个文件放到~/emacs中,然后将glibc-abbrevs.tar.gz解压缩。在~/.emacs中加入以下内容:(add-to-list 'load-path "~/emacs");; ensure abbrev mode i 阅读全文
posted @ 2011-07-25 18:29 wangkangluo1 阅读(1013) 评论(0) 推荐(0) 编辑
摘要: 原文地址:http://blog.csdn.net/hide1713/article/details/1647209更多图片请看http://ecb.sourceforge.net/先下载这两个软件的安装包ecb http://ecb.sourceforge.net/cedet http://cedet.sourceforge.net/然后tar zxvf ecb-2.32.tar.gzcd cedet-1.0pre4make (ecb需要设置Makefile 中的CEDET=~/.emacs.d/cedet-1.0pre7)等cedet生成完毕在你的用户目录下面应该有一个.emacs文件(前 阅读全文
posted @ 2011-07-25 16:05 wangkangluo1 阅读(4545) 评论(0) 推荐(0) 编辑
上一页 1 ··· 52 53 54 55 56 57 58 59 60 ··· 73 下一页