_putch_nolock, _putwch_nolock
Writes a character to the console without locking the thread.
int _putch_nolock( int c ); wint_t _putwch_nolock( wchar_t c );
Parameters
- c
-
Character to be output.
_putch_nolock and _putwch_nolock are identical to _putch and _putwch, respectively, except that they are not protected from interference by other threads. They might be faster because they do not incur the overhead of locking out other threads. Use these functions only in thread-safe contexts such as single-threaded applications or where the calling scope already handles thread isolation.
| Tchar.h routine | _UNICODE and _MBCS not defined | _MBCS defined | _UNICODE defined |
|---|---|---|---|
| _puttch_nolock | _putch_nolock | _putch_nolock | _putwch_nolock |
| Routine | Required header | Compatibility |
|---|---|---|
| _putch_nolock | <conio.h> | Windows 95, Windows 98, Windows 98 Second Edition, Windows Millennium Edition, Windows Millennium Edition, Windows NT 4.0, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 |
| _putwch_nolock | <conio.h> | Windows 95, Windows 98, Windows 98 Second Edition, Windows Millennium Edition, Windows Millennium Edition, Windows NT 4.0, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 |
For more compatibility information, see Compatibility.
Libraries
All versions of the C run-time libraries.