Skip to content

Tabulate nolock functions #5020

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
65 changes: 25 additions & 40 deletions docs/c-runtime-library/nolock-functions.md
Original file line number Diff line number Diff line change
@@ -1,53 +1,38 @@
---
description: "Learn more about: _nolock Functions"
title: "_nolock Functions"
ms.date: "11/04/2016"
description: "Learn more about: _nolock Functions"
ms.date: "04/14/2024"
helpviewer_keywords: ["_nolock functions", "nolock functions"]
ms.assetid: 7d651d87-38d2-4303-9897-fdb5f7a3e899
---
# `_nolock` functions

The `_nolock` functions are versions of I/O functions that don't perform any locking. They're provided for users requiring maximum performance. For more information, see [Multithreaded libraries performance](./multithreaded-libraries-performance.md).
The `_nolock` functions are versions of I/O functions that don't perform any locking. They're provided for users requiring maximum performance. For more information, see [Multithreaded libraries performance](multithreaded-libraries-performance.md).

Use _nolock functions only if your program is truly single-threaded or if it does its own locking.
Use `_nolock` functions only if your program is truly single-threaded or if it does its own locking.

## No lock routines

[`_fclose_nolock`](./reference/fclose-nolock.md)

[`_fflush_nolock`](./reference/fflush-nolock.md)

[`_fgetc_nolock`, `_fgetwc_nolock`](./reference/fgetc-nolock-fgetwc-nolock.md)

[`_fread_nolock`](./reference/fread-nolock.md)

[`_fseek_nolock`, `_fseeki64_nolock`](./reference/fseek-nolock-fseeki64-nolock.md)

[`_ftell_nolock`, `_ftelli64_nolock`](./reference/ftell-nolock-ftelli64-nolock.md)

[`_fwrite_nolock`](./reference/fwrite-nolock.md)

[`_getc_nolock`, `_getwc_nolock`](./reference/getc-nolock-getwc-nolock.md)

[`_getch_nolock`, `_getwch_nolock`](./reference/getch-nolock-getwch-nolock.md)

[`_getchar_nolock`, `_getwchar_nolock`](./reference/getchar-nolock-getwchar-nolock.md)

[`_getche_nolock`, `_getwche_nolock`](./reference/getche-nolock-getwche-nolock.md)

[`_getdcwd_nolock`, `_wgetdcwd_nolock`](./reference/getdcwd-nolock-wgetdcwd-nolock.md)

[`_putc_nolock`, `_putwc_nolock`](./reference/putc-nolock-putwc-nolock.md)

[`_putch_nolock`, `_putwch_nolock`](./reference/putch-nolock-putwch-nolock.md)

[`_putchar_nolock`, `_putwchar_nolock`](./reference/putchar-nolock-putwchar-nolock.md)

[`_ungetc_nolock`, `_ungetwc_nolock`](./reference/ungetc-nolock-ungetwc-nolock.md)

[`_ungetch_nolock`, `_ungetwch_nolock`](./reference/ungetch-ungetwch-ungetch-nolock-ungetwch-nolock.md)
| Routine | Use |
|---|---|
| [`_fclose_nolock`](reference/fclose-nolock.md) | Closes a stream without locking |
| [`_fflush_nolock`](reference/fflush-nolock.md) | Flushes a stream without locking |
| [`_fgetc_nolock`, `_fgetwc_nolock`](reference/fgetc-nolock-fgetwc-nolock.md) | Reads a character from a stream without locking |
| [`_fread_nolock`](reference/fread-nolock.md) | Reads data from a stream without locking |
| [`_fseek_nolock`, `_fseeki64_nolock`](reference/fseek-nolock-fseeki64-nolock.md) | Moves the file pointer to a specified location without locking |
| [`_ftell_nolock`, `_ftelli64_nolock`](reference/ftell-nolock-ftelli64-nolock.md) | Gets the current position of a file pointer without locking |
| [`_fwrite_nolock`](reference/fwrite-nolock.md) | Writes data to a stream without locking |
| [`_getc_nolock`, `_getwc_nolock`](reference/getc-nolock-getwc-nolock.md) | Reads a character from a stream without locking |
| [`_getch_nolock`, `_getwch_nolock`](reference/getch-nolock-getwch-nolock.md) | Gets a character from the console without echo and without locking |
| [`_getchar_nolock`, `_getwchar_nolock`](reference/getchar-nolock-getwchar-nolock.md) | Reads a character from the standard input without locking |
| [`_getche_nolock`, `_getwche_nolock`](reference/getche-nolock-getwche-nolock.md) | Gets a character from the console with echo and without locking |
| [`_getdcwd_nolock`, `_wgetdcwd_nolock`](reference/getdcwd-nolock-wgetdcwd-nolock.md) | Gets the full path of the current working directory on the specified drive |
| [`_putc_nolock`, `_putwc_nolock`](reference/putc-nolock-putwc-nolock.md) | Writes a character to a stream without locking |
| [`_putch_nolock`, `_putwch_nolock`](reference/putch-nolock-putwch-nolock.md) | Writes a character to the console without locking |
| [`_putchar_nolock`, `_putwchar_nolock`](reference/putchar-nolock-putwchar-nolock.md) | Writes a character to `stdout` without locking |
| [`_ungetc_nolock`, `_ungetwc_nolock`](reference/ungetc-nolock-ungetwc-nolock.md) | Pushes a character back onto the stream without locking |
| [`_ungetch_nolock`, `_ungetwch_nolock`](reference/ungetch-ungetwch-ungetch-nolock-ungetwch-nolock.md) | Pushes back the last character that's read from the console without locking |

## See also

[Input and output](./input-and-output.md)\
[Universal C runtime routines by category](./run-time-routines-by-category.md)
[Input and output](input-and-output.md)\
[Universal C runtime routines by category](run-time-routines-by-category.md)