Home / Function/ markClosed() — netty Function Reference

markClosed() — netty Function Reference

Architecture documentation for the markClosed() function in FileDescriptor.java from the netty codebase.

Function java Buffer Search calls 2 called by 1

Entity Profile

Dependency Diagram

graph TD
  802f1d9f_4e73_6025_da8a_fd85e14dbeea["markClosed()"]
  5c6e37aa_7064_92fb_4b59_7b76ad32e403["FileDescriptor"]
  802f1d9f_4e73_6025_da8a_fd85e14dbeea -->|defined in| 5c6e37aa_7064_92fb_4b59_7b76ad32e403
  bb447b16_4106_b5c3_5492_65b863a59ccc["close()"]
  bb447b16_4106_b5c3_5492_65b863a59ccc -->|calls| 802f1d9f_4e73_6025_da8a_fd85e14dbeea
  170beae4_906f_d7d8_9845_3ba26c5a0ee8["isClosed()"]
  802f1d9f_4e73_6025_da8a_fd85e14dbeea -->|calls| 170beae4_906f_d7d8_9845_3ba26c5a0ee8
  fd17c0f3_5ac3_c4ec_784d_c973ba8f3582["casState()"]
  802f1d9f_4e73_6025_da8a_fd85e14dbeea -->|calls| fd17c0f3_5ac3_c4ec_784d_c973ba8f3582
  style 802f1d9f_4e73_6025_da8a_fd85e14dbeea fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport-native-unix-common/src/main/java/io/netty/channel/unix/FileDescriptor.java lines 65–76

    protected boolean markClosed() {
        for (;;) {
            int state = this.state;
            if (isClosed(state)) {
                return false;
            }
            // Once a close operation happens, the channel is considered shutdown.
            if (casState(state, state | STATE_ALL_MASK)) {
                return true;
            }
        }
    }

Domain

Subdomains

Called By

Frequently Asked Questions

What does markClosed() do?
markClosed() is a function in the netty codebase, defined in transport-native-unix-common/src/main/java/io/netty/channel/unix/FileDescriptor.java.
Where is markClosed() defined?
markClosed() is defined in transport-native-unix-common/src/main/java/io/netty/channel/unix/FileDescriptor.java at line 65.
What does markClosed() call?
markClosed() calls 2 function(s): casState, isClosed.
What calls markClosed()?
markClosed() is called by 1 function(s): close.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free