/*
* EMPTHREADs for Windows NT.
*
- * Actually, threads for any Win32 platform,
- * like Win95, Win98, WinCE, and whatever other
- * toy OSs are in our future from Microsoft.
+ * Actually, threads for any Win32 platform, like Win95, Win98, WinCE,
+ * and whatever other toy OSs are in our future from Microsoft.
*
- * WIN32 has a full pre-emptive threading environment.
- * But, Empire can not handle pre-emptive threading.
- * Thus, we will use the threads, but limit the preemption
- * using a Mutex semaphore.
+ * WIN32 has a full pre-emptive threading environment. But Empire can
+ * not handle pre-emptive threading. Thus, we will use the threads,
+ * but limit the preemption using a Mutex semaphore.
*
*/
* loc_Thread_t
*
* The REAL empth_t thread structure.
- * The external world only gets
- * a void pointer to this.
+ * The external world only gets a void pointer to this.
*/
typedef struct loc_Thread_t {
* loc_Sem_t
*
* The REAL empth_sem_t structure.
- * The external world only gets
- * a void pointer to this.
+ * The external world only gets a void pointer to this.
*/
typedef struct empth_sem_t {
* loc_RunThisThread
*
* This thread wants to run.
- * When this function returns, the
- * globals are set to this thread info,
- * and the thread owns the MUTEX sem.
+ * When this function returns, the globals are set to this thread
+ * info, and the thread owns the MUTEX sem.
*/
static void
loc_RunThisThread()
/************************
* loc_BlockMainThread
*
- * This blocks up the main thread.
- * loc_WakeupMainThread() is used
- * wakeup the main so shutdown can
- * proceed.
+ * This blocks up the main thread. loc_WakeupMainThread() is used
+ * wakeup the main so shutdown can proceed.
*/
static void
loc_BlockMainThread(void)
*
* Initialize the thread environment.
*
- * This is called from the program
- * main line.
+ * This is called from the program main line.
*/
int
empth_init(char **ctx_ptr, int flags)
* Do a select on the given file.
* Wait for IO on it.
*
- * This would be one of the main functions used within
- * gen\io.c
+ * This would be one of the main functions used within gen\io.c
*/
void
empth_select(int fd, int flags)
/************************
* empth_sem_wait
*
- * Wait for the specified signal semaphore
- * to be signaled.
+ * Wait for the specified signal semaphore to be signaled.
*/
void
empth_sem_wait(empth_sem_t *sm)