]> sourceware.org Git - newlib-cygwin.git/commit
Restore _lock initialization in non-single threaded mode
authorTorbjörn SVENSSON <torbjorn.svensson@foss.st.com>
Tue, 30 Aug 2022 13:54:53 +0000 (15:54 +0200)
committerCorinna Vinschen <corinna@vinschen.de>
Wed, 31 Aug 2022 08:02:53 +0000 (10:02 +0200)
commitdd1122e21cb4ea78ce4c5894787c8f085469f9dd
treeb05d629334bcfc0e9662431a0b0d1d78b0e270cc
parentb4561c236357c32290321fade62b5c81a5a9fe3c
Restore _lock initialization in non-single threaded mode

When __SINGLE_THREAD__ is not defined, stdin, stdout and stderr needs
to have their _lock instance initialized. The __sfp() method is not
invoked for the 3 mentioned fds thus, the std() method needs to handle
the initialization of the lock.

This is more or less a revert of 382550072b49430f8c69adee937a0ba07bd385e6

Contributed by STMicroelectronics

Signed-off-by: Torbjörn SVENSSON <torbjorn.svensson@foss.st.com>
newlib/libc/stdio/findfp.c
This page took 0.034552 seconds and 5 git commands to generate.