Skip to content
Snippets Groups Projects
Commit d30c6bc6 authored by Duncan Coutts's avatar Duncan Coutts Committed by Marge Bot
Browse files

Tidy up a couple things in Select.{h,c}

Use the standard #include {Begin,End}Private.h style rather than
RTS_PRIVATE on individual decls.

And conditionally build the code for the select I/O manager based on
the new CPP IOMGR_ENABLED_SELECT rather than on THREADED_RTS.
parent 5ad4b30f
No related branches found
No related tags found
No related merge requests found
......@@ -36,7 +36,7 @@
#include "Clock.h"
#if !defined(THREADED_RTS)
#if defined(IOMGR_ENABLED_SELECT)
// The target time for a threadDelay is stored in a one-word quantity
// in the TSO (tso->block_info.target). On a 32-bit machine we
......@@ -463,4 +463,4 @@ awaitCompletedTimeoutsOrIOSelect(Capability *cap, bool wait)
&& emptyRunQueue(cap));
}
#endif /* THREADED_RTS */
#endif /* IOMGR_ENABLED_SELECT */
......@@ -8,10 +8,14 @@
#pragma once
#include "BeginPrivate.h"
// An absolute time value in units of 10ms.
typedef StgWord LowResTime;
RTS_PRIVATE LowResTime getDelayTarget (HsInt us);
LowResTime getDelayTarget (HsInt us);
void awaitCompletedTimeoutsOrIOSelect(Capability *cap, bool wait);
#include "EndPrivate.h"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment