Sha256: ea3aa25a0971d4d3ab7cfff8ed2b81a8541461d3bfdd4116e55703f373d44294

Contents?: true

Size: 912 Bytes

Versions: 4

Compression:

Stored size: 912 Bytes

Contents

// ------------------------------------------------------------------------------------------------

#include <windows.h>

#include <IIEP_Def.H>

// ------------------------------------------------------------------------------------------------
// name: Lock()
// desc:
// ------------------------------------------------------------------------------------------------

void IIEP::CMutex::Lock(void)
{
  while (m_bLocked)
  {
    ::Sleep(1);
  }
  
  m_bLocked = true;
}

// ------------------------------------------------------------------------------------------------
// name: Wait()
// desc:
// ------------------------------------------------------------------------------------------------

void IIEP::CMutex::Wait(void)
{
  while (m_bLocked)
  {
    ::Sleep(1);
  }
}

// ------------------------------------------------------------------------------------------------

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
seal-0.1.3 mpg123/ports/MSVC++/CMP3Stream/SOURCE/CORE_Mutex.CPP
seal-0.1.2 mpg123/ports/MSVC++/CMP3Stream/SOURCE/CORE_Mutex.CPP
seal-0.1.1 mpg123/ports/MSVC++/CMP3Stream/SOURCE/CORE_Mutex.CPP
seal-0.1.0 mpg123/ports/MSVC++/CMP3Stream/SOURCE/CORE_Mutex.CPP