java.net implemented.
[cacao.git] / threads / notyet.c
index 3a4535cd881bb3235e5c0a4f608706322662d43a..4ec1d20acb657c97064c0f01a73d39f8ab9ae6ce 100644 (file)
@@ -1,41 +1,5 @@
 /* ------------------------ thread.c -------------------------- */
 
-/*
- * Put a thread to sleep.
- */
-void
-sleepThread(int64 time)
-{
-    thread** tidp;
-
-    /* Sleep for no time */
-    if (time == 0) {
-       return;
-    }
-    
-    intsDisable();
-
-    /* Get absolute time */
-    currentThread->PrivateInfo->time = time + currentTime();
-
-    /* Find place in alarm list */
-    for (tidp = &alarmList; (*tidp) != 0; tidp = &(*tidp)->next) {
-       if ((*tidp)->PrivateInfo->time > currentThread->PrivateInfo->time) {
-           break;
-       }
-    }
-
-    /* If I'm head of alarm list, restart alarm */
-    if (tidp == &alarmList) {
-       MALARM(time);
-    }
-    
-    /* Suspend thread on it */
-    suspendOnQThread(currentThread, tidp);
-    
-    intsRestore();
-}
-
 /*
  * Handle alarm.
  * This routine uses a different meaning of "blockInts". Formerly, it was just