代码搜索:thread
找到约 10,000 项符合「thread」的源代码
代码结果 10,000
www.eeworm.com/read/148833/12422546
h thread-st.h
/*
* $Id:$
* Generic version: no threads.
* by Wolfram Gloger 2004
*/
#include
struct thread_st {
char *sp; /* stack pointer, can be 0 */
void (*func)(struct thread_st* st); /*
www.eeworm.com/read/148833/12422558
h thread-st.h
/*
* $Id:$
* Solaris version
* by Wolfram Gloger 2004
*/
#include
#include
#ifndef STACKSIZE
#define STACKSIZE 32768
#endif
struct thread_st {
char *sp; /* stack poi
www.eeworm.com/read/148833/12422566
h thread-st.h
/*
* $Id: thread-st.h$
* pthread version
* by Wolfram Gloger 2004
*/
#include
#include
pthread_cond_t finish_cond = PTHREAD_COND_INITIALIZER;
pthread_mutex_t finish_mutex =
www.eeworm.com/read/148833/12422576
h thread-st.h
/*
* $Id:$
* sproc version
* by Wolfram Gloger 2001, 2004
*/
#include
#include
#include
#ifndef STACKSIZE
#define STACKSIZE 32768
#endif
struct thread_st {
www.eeworm.com/read/250043/12440916
java thread5.java
class SumThread extends Thread{
int from, to;
long sum;
SumThread(int from, int to){
this.from=from;
this.to=to;
}
long getSum(){
return sum;
}
public void run(){
www.eeworm.com/read/148696/12440966
cpp simple_thread.cpp
#include
// This is a child thread procedure that waits for a semaphore,
// holds the semaphore for five seconds, and releases the semaphore.
// Threads that cannot get semaphores w
www.eeworm.com/read/148696/12440969
mak simple_thread.mak
# Nmake macros for building Windows 32-Bit apps
all: Simple~1.exe
# Update the resource if necessary
generic.res:generic.rc generic.h
rc -r -fo generic.res generic.rc
# Update the obj
www.eeworm.com/read/250043/12441011
java thread8.java
class NewLine extends Thread{
public void run(){
for(int i=1;i
www.eeworm.com/read/250043/12441030
java thread9.java
public class Thread9 extends Thread{
public void run(){
System.out.println("肋抛聪 柄快瘤付.");
try{
sleep(1000000);
}catch(InterruptedException ie){
System.out.println("擎~ 穿啊 柄奎绢?
www.eeworm.com/read/250043/12441062
java thread10.java
public class Thread10 extends Thread{
public void run(){
for(int i=1;i