Skip to content

socket module should use PyMutex instead of Lock #150452

@KowalskiThomas

Description

@KowalskiThomas

Issue

This is a follow-up from #150406 where @kumaraditya303 pointed out that the existing Lock allocated here...

cpython/Modules/socketmodule.c

Lines 9294 to 9296 in a189e3d

#if defined(USE_GETHOSTBYNAME_LOCK)
netdb_lock = PyThread_allocate_lock();
#endif

... should be replaced with a PyMutex.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    extension-modulesC modules in the Modules dirtype-featureA feature request or enhancement
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions