import ctypes


def get_name() -> str:
    """Get the name of the current thread as a string."""

    name = (ctypes.c_char * 16)()  # pytype: disable=not-callable
    ffi.prctl(ffi.PR_GET_NAME, name, 0, 0, 0)  # type: ignore
    return name.value.decode()