📄 dbginit.c
字号:
/* -*- Mode: C; c-basic-offset:4 ; -*- *//* $Id: dbginit.c,v 1.1 2002/11/04 16:57:47 gropp Exp $ * * (C) 2001 by Argonne National Laboratory. * See COPYRIGHT in top-level directory. */#include "mpiimpl.h"void MPIR_WaitForDebugger( void ){ volatile int dbg_release = 0;#ifdef MPID_HAS_PROC_INFO /* Check to see if we're not the master, * and wait for the debugger to attach if we're * a slave. The debugger will reset the debug_gate. * There is no code in the library which will do it ! */ if (MPIR_being_debugged && MPID_MyWorldRank != 0) { while (MPIR_debug_gate == 0) { /* Wait to be attached to, select avoids * signaling and allows a smaller timeout than * sleep(1) */ struct timeval timeout; timeout.tv_sec = 0; timeout.tv_usec = 250000; select( 0, (void *)0, (void *)0, (void *)0, &timeout ); } }#endif if (getenv("MPIEXEC_DEBUG")) { while (!dbg_release) ; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -