]> gitweb.factorcode.org Git - factor.git/commitdiff
vm: stub out windows sampling timer implementation
authorJoe Groff <arcata@gmail.com>
Mon, 31 Oct 2011 07:11:59 +0000 (00:11 -0700)
committerJoe Groff <arcata@gmail.com>
Wed, 2 Nov 2011 20:23:10 +0000 (13:23 -0700)
AFAIK Windows has no equivalent to setitimer. We'll probably need to use a thread that periodically pauses and samples the main VM thread.

vm/os-windows.cpp

index 3cbfc7e85c55e1ab37aba13f4aea429d3fd9ef78..e220e11031d7da8b2cf1510a3984d5fd362f2a3a 100755 (executable)
@@ -301,4 +301,14 @@ void factor_vm::open_console()
        SetConsoleCtrlHandler(factor::ctrl_handler, TRUE);
 }
 
+void factor_vm::start_sampling_profiler_timer()
+{
+       general_error(ERROR_NOT_IMPLEMENTED, false_object, false_object);
+}
+
+void factor_vm::end_sampling_profiler_timer()
+{
+       general_error(ERROR_NOT_IMPLEMENTED, false_object, false_object);
+}
+
 }