dbginit.c

来自「刚才是说明 现在是安装程序在 LINUX环境下进行编程的MPICH安装文件」· C语言 代码 · 共 37 行

C
37
字号
/* -*- 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 + =
减小字号Ctrl + -
显示快捷键?