Skip to content

Commit 5c89938

Browse files
committed
rt: Remove rust_timer. Unused
1 parent d24eb58 commit 5c89938

File tree

4 files changed

+0
-119
lines changed

4 files changed

+0
-119
lines changed

mk/rt.mk

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ RUNTIME_CS_$(1) := \
5050
rt/rust_uv.cpp \
5151
rt/rust_uvtmp.cpp \
5252
rt/rust_log.cpp \
53-
rt/rust_timer.cpp \
5453
rt/circular_buffer.cpp \
5554
rt/isaac/randport.cpp \
5655
rt/rust_srv.cpp \

src/rt/rust_internal.h

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -220,27 +220,6 @@ template <typename T> class ptr_vec : public task_owned<ptr_vec<T> > {
220220
#include "rust_kernel.h"
221221
#include "rust_scheduler.h"
222222

223-
struct rust_timer {
224-
// FIXME: This will probably eventually need replacement
225-
// with something more sophisticated and integrated with
226-
// an IO event-handling library, when we have such a thing.
227-
// For now it's just the most basic "thread that can interrupt
228-
// its associated domain-thread" device, so that we have
229-
// *some* form of task-preemption.
230-
rust_scheduler *sched;
231-
uintptr_t exit_flag;
232-
233-
#if defined(__WIN32__)
234-
HANDLE thread;
235-
#else
236-
pthread_attr_t attr;
237-
pthread_t thread;
238-
#endif
239-
240-
rust_timer(rust_scheduler *sched);
241-
~rust_timer();
242-
};
243-
244223
typedef void CDECL (glue_fn)(void *, void *,
245224
const type_desc **, void *);
246225
typedef void CDECL (cmp_glue_fn)(void *, void *,

src/rt/rust_scheduler.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -244,13 +244,6 @@ void
244244
rust_scheduler::start_main_loop() {
245245
lock.lock();
246246

247-
// Make sure someone is watching, to pull us out of infinite loops.
248-
//
249-
// FIXME: time-based interruption is not presently working; worked
250-
// in rustboot and has been completely broken in rustc.
251-
//
252-
// rust_timer timer(this);
253-
254247
DLOG(this, dom, "started domain loop %d", id);
255248

256249
while (kernel->live_tasks > 0) {

src/rt/rust_timer.cpp

Lines changed: 0 additions & 90 deletions
This file was deleted.

0 commit comments

Comments
 (0)