コード例 #1
0
ファイル: ParInit.c プロジェクト: Ericson2314/lighthouse
//@cindex shutdownParallelSystem
void
shutdownParallelSystem(StgInt n)
{
  /* use the file specified via -S */ 
  FILE *sf = RtsFlags.GcFlags.statsFile;

  IF_PAR_DEBUG(verbose,
	       if (n==0)
  	         belch("==== entered shutdownParallelSystem ...");
               else
  	         belch("==== entered shutdownParallelSystem (ERROR %d)...", n);
	       );
コード例 #2
0
ファイル: OSThreads.c プロジェクト: ygmpkk/house
void
closeCondition( Condition* pCond )
{
  if ( CloseHandle(*pCond) == 0 ) {
    belch("closeCondition: failed to close");
  }
  return;
}
コード例 #3
0
ファイル: OSThreads.c プロジェクト: ygmpkk/house
void
initCondition( Condition* pCond )
{
  HANDLE h =  CreateEvent(NULL, 
			  FALSE,  /* auto reset */
			  FALSE,  /* initially not signalled */
			  NULL); /* unnamed => process-local. */
  
  if ( h == NULL ) {
    belch("initCondition: unable to create");
  }
  *pCond = h;
  return;
}