代码搜索:MUTEX
找到约 9,966 项符合「MUTEX」的源代码
代码结果 9,966
www.eeworm.com/read/292026/8381795
h mutex.h
/*
Copyright (c) 2008 TrueCrypt Foundation. All rights reserved.
Governed by the TrueCrypt License 2.4 the full text of which is contained
in the file License.txt included in TrueCrypt binary
www.eeworm.com/read/291646/8405813
java mutex.java
public final class Mutex {
private long locks = 0;
private Thread owner = null;
public synchronized void lock() {
Thread me = Thread.currentThread();
while (locks > 0
www.eeworm.com/read/291646/8405862
java mutex.java
public final class Mutex {
private boolean busy = false;
public synchronized void lock() {
while (busy) {
try {
wait();
} catch (Interrupt
www.eeworm.com/read/391359/8407533
c mutex.c
/*
* Mutex.c
*
* Sample code for "Multithreading Applications in Win32"
* This sample is discussed in Chapter 4.
*
* Graphically demonstrates the problem of the
* dining philosophers.
www.eeworm.com/read/290548/8476971
h mutex.h
/*
* Mutexes: blocking mutual exclusion locks
*
* started by Ingo Molnar:
*
* Copyright (C) 2004, 2005, 2006 Red Hat, Inc., Ingo Molnar
*
* This file contains mutex debuggin
www.eeworm.com/read/290548/8477122
c mutex.c
/*
* kernel/mutex.c
*
* Mutexes: blocking mutual exclusion locks
*
* Started by Ingo Molnar:
*
* Copyright (C) 2004, 2005, 2006 Red Hat, Inc., Ingo Molnar
*
* Many thanks
www.eeworm.com/read/188626/8524175
c mutex.c
#include
#include
#include
#include
#include
pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
int lock_var;
time_t end_time;
void pt
www.eeworm.com/read/388866/8570177
h mutex.h
#ifndef _MUTEX_H_
#define _MUTEX_H_
#ifdef WIN32
#include
#else
#include
#include
#endif
class MMutex
{
public:
MMutex();
~MMutex
www.eeworm.com/read/388866/8570186
cpp mutex.cpp
#include "mutex.h"
#include
#include
#ifndef WIN32
static pthread_mutexattr_t *sMutexAttr=NULL;
static void MutexAttrInit();
static pthread_once_t sMute
www.eeworm.com/read/432039/8636419
c mutex.c
#include
#include
#include
#include
#include
pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
int lock_var;
time_t end_time;
void pt