Skip to content

Prevent lock of main thread - #2550

Open
PlayBoy31 wants to merge 1 commit into
alliedmodders:masterfrom
PlayBoy31:master
Open

Prevent lock of main thread#2550
PlayBoy31 wants to merge 1 commit into
alliedmodders:masterfrom
PlayBoy31:master

Conversation

@PlayBoy31

Copy link
Copy Markdown
Contributor

if the seperate thread is making a query but the SQL server is busy, and if a that time the main thread is doing a SQL_EscapeString (in a sp plugin) then the main thread is waiting for the lock. It is no necessary to do this lock here, its not a query.

if the seperate thread is making a query but the SQL server is busy, and if a that time the main thread is doing a SQL_EscapeString (in a sp plugin) then the main thread is waiting for the lock.
It is no necessary to do this lock here, its not a query
@dvander

dvander commented Aug 18, 2026

Copy link
Copy Markdown
Member

Have you confirmed that the internal implementation is okay with this being used concurrently with other MySQL API calls?

@PlayBoy31

Copy link
Copy Markdown
Contributor Author

Have you confirmed that the internal implementation is okay with this being used concurrently with other MySQL API calls?

Yes, I have tested the fix and it fix the regrtession i observed since the #2528 (=> my game server was laggy when doing large operations on the SQL server, both are not the same machine)

I have lots of MYSQL API call in my plugins, all is fine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants