📄 ndet_single.c
字号:
#ifndef lint#ifdef sccsstatic char sccsid[] = "@(#)ndet_single.c 1.1 92/07/30 Copyr 1985 Sun Micro";#endif#endif/* * Copyright (c) 1985 by Sun Microsystems, Inc. *//* * Ndet_single.c - Implement notify_dispatch, i.e., do one notification cycle, * if not already in the middle of it. */#include <sunwindow/ntfy.h>#include <sunwindow/ndet.h>#include <sunwindow/ndis.h> /* For ndis_client == NTFY_CLIENT_NULL check */#include <errno.h>extern Notify_errornotify_dispatch(){ Notify_error return_code; /* * Do nothing if in middle of notification loop or * no other clients and no notifications pending. */ if (ndet_flags & NDET_STARTED) return (NOTIFY_INVAL); if ((ndet_clients == NTFY_CLIENT_NULL) && (ndis_clients == NTFY_CLIENT_NULL)) return (NOTIFY_NO_CONDITION); /* Setup flag to break out of notify_start after single loop */ ndet_flags |= NDET_NO_DELAY; /* Start notifier */ return_code = notify_start(); /* Reset break out flag */ ndet_flags &= ~NDET_NO_DELAY; return (return_code);}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -