⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 create1.c

📁 cygwin, 著名的在win32下模拟unix操作系统的东东
💻 C
字号:
/* * create1.c * * Description: * Create a thread and check that it ran. * * Depends on API functions: None. */#include "test.h"static int washere = 0;void * func(void * arg){  washere = 1;  return 0; } intmain(){  pthread_t t;  assert(pthread_create(&t, NULL, func, NULL) == 0);  /* A dirty hack, but we cannot rely on pthread_join in this     primitive test. */  Sleep(2000);  assert(washere == 1);  return 0;}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -