mirror of
https://github.com/alliedmodders/sourcemod.git
synced 2025-12-06 18:08:36 +00:00
Update include.
This commit is contained in:
parent
372eb9c0ca
commit
a6d14032e6
@ -941,30 +941,15 @@ native void SQL_BindParamString(Handle statement, int param, const char[] value,
|
|||||||
native bool SQL_Execute(Handle statement);
|
native bool SQL_Execute(Handle statement);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Locks a database so threading operations will not interrupt.
|
* @deprecated Functionality removed.
|
||||||
*
|
|
||||||
* If you are using a database Handle for both threading and non-threading,
|
|
||||||
* this MUST be called before doing any set of non-threading DB operations.
|
|
||||||
* Otherwise you risk corrupting the database driver's memory or network
|
|
||||||
* connection.
|
|
||||||
*
|
|
||||||
* Leaving a lock on a database and then executing a threaded query results
|
|
||||||
* in a dead lock! Make sure to call SQL_UnlockDatabase()!
|
|
||||||
*
|
|
||||||
* If the lock cannot be acquired, the main thread will pause until the
|
|
||||||
* threaded operation has concluded.
|
|
||||||
*
|
|
||||||
* @param database A database Handle.
|
|
||||||
* @error Invalid database Handle.
|
|
||||||
*/
|
*/
|
||||||
|
#pragma deprecated Use SQL_Query() normally.
|
||||||
native void SQL_LockDatabase(Handle database);
|
native void SQL_LockDatabase(Handle database);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Unlocks a database so threading operations may continue.
|
* @deprecated Functionality removed.
|
||||||
*
|
|
||||||
* @param database A database Handle.
|
|
||||||
* @error Invalid database Handle.
|
|
||||||
*/
|
*/
|
||||||
|
#pragma deprecated Use SQL_Query() normally.
|
||||||
native void SQL_UnlockDatabase(Handle database);
|
native void SQL_UnlockDatabase(Handle database);
|
||||||
|
|
||||||
// General callback for threaded SQL stuff.
|
// General callback for threaded SQL stuff.
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user