diff options
author | Gerald Combs <gerald@wireshark.org> | 2016-03-18 13:13:44 -0700 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2016-06-13 16:18:25 +0000 |
commit | e2e84563eeb1e7b9add817d2b0c39656fab297d5 (patch) | |
tree | 083a272cec243de00c603c63a395c0e3e91c04d6 /wsutil | |
parent | 92ef3d0b55a37f042e1ce7e208e7f39cb49b9bce (diff) |
Use getc_unlocked in a few places.
Use getc_unlocked or _fgetc_nolock instead of getc in a few places. This
reduces startup time by about 100ms here.
Change-Id: I59ceb09678457c871cce79fcc3ce71998fe4f5af
Reviewed-on: https://code.wireshark.org/review/14518
Reviewed-by: Michael Mann <mmann78@netscape.net>
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'wsutil')
-rw-r--r-- | wsutil/file_util.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/wsutil/file_util.h b/wsutil/file_util.h index d10cc817f7..5c8c0c41c6 100644 --- a/wsutil/file_util.h +++ b/wsutil/file_util.h @@ -123,6 +123,7 @@ WS_DLL_PUBLIC FILE * ws_stdio_freopen (const gchar *filename, const gchar *mode, #define ws_fdopen _fdopen #define ws_fileno _fileno #define ws_isatty _isatty +#define ws_getc_unlocked _fgetc_nolock /* * Other CRT functions. getpid probably belongs in sys_util.h or proc_util.h @@ -200,6 +201,7 @@ WS_DLL_PUBLIC void create_app_running_mutex(); #define ws_fdopen fdopen #define ws_fileno fileno #define ws_isatty isatty +#define ws_getc_unlocked getc_unlocked #define O_BINARY 0 /* Win32 needs the O_BINARY flag for open() */ /* Other CRT functions */ |