[haiku-commits] r41464 - in haiku/branches/developer/bonefish/signals/src/add-ons/kernel/debugger: invalidate_on_exit run_on_exit

  • From: ingo_weinhold@xxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Thu, 12 May 2011 19:44:12 +0200 (CEST)

Author: bonefish
Date: 2011-05-12 19:44:11 +0200 (Thu, 12 May 2011)
New Revision: 41464
Changeset: https://dev.haiku-os.org/changeset/41464

Modified:
   
haiku/branches/developer/bonefish/signals/src/add-ons/kernel/debugger/invalidate_on_exit/invalidate_on_exit.cpp
   
haiku/branches/developer/bonefish/signals/src/add-ons/kernel/debugger/run_on_exit/run_on_exit.cpp
Log:
Use resume_thread() instead of send_signal_etc().


Modified: 
haiku/branches/developer/bonefish/signals/src/add-ons/kernel/debugger/invalidate_on_exit/invalidate_on_exit.cpp
===================================================================
--- 
haiku/branches/developer/bonefish/signals/src/add-ons/kernel/debugger/invalidate_on_exit/invalidate_on_exit.cpp
     2011-05-12 16:58:49 UTC (rev 41463)
+++ 
haiku/branches/developer/bonefish/signals/src/add-ons/kernel/debugger/invalidate_on_exit/invalidate_on_exit.cpp
     2011-05-12 17:44:11 UTC (rev 41464)
@@ -50,7 +50,7 @@
                if (thread < B_OK)
                        return thread;
 
-               send_signal_etc(thread, SIGCONT, B_DO_NOT_RESCHEDULE);
+               resume_thread(thread);
                return B_OK;
        } else if (op == B_MODULE_UNINIT) {
                // deleting the sem will also cause the thread to exit
@@ -76,7 +76,7 @@
        NULL
 };
 
-module_info *modules[] = { 
+module_info *modules[] = {
        (module_info *)&sModuleInfo,
        NULL
 };

Modified: 
haiku/branches/developer/bonefish/signals/src/add-ons/kernel/debugger/run_on_exit/run_on_exit.cpp
===================================================================
--- 
haiku/branches/developer/bonefish/signals/src/add-ons/kernel/debugger/run_on_exit/run_on_exit.cpp
   2011-05-12 16:58:49 UTC (rev 41463)
+++ 
haiku/branches/developer/bonefish/signals/src/add-ons/kernel/debugger/run_on_exit/run_on_exit.cpp
   2011-05-12 17:44:11 UTC (rev 41464)
@@ -103,7 +103,7 @@
                if (thread < B_OK)
                        return thread;
 
-               send_signal_etc(thread, SIGCONT, B_DO_NOT_RESCHEDULE);
+               resume_thread(thread);
 
                add_debugger_command_etc("on_exit", &add_run_on_exit_command,
                        "Adds a command to be run when leaving the kernel 
debugger",
@@ -136,7 +136,7 @@
        NULL
 };
 
-module_info *modules[] = { 
+module_info *modules[] = {
        (module_info *)&sModuleInfo,
        NULL
 };


Other related posts:

  • » [haiku-commits] r41464 - in haiku/branches/developer/bonefish/signals/src/add-ons/kernel/debugger: invalidate_on_exit run_on_exit - ingo_weinhold