1
0
mirror of https://github.com/postgres/postgres.git synced 2025-11-07 19:06:32 +03:00

I have written some patches to the postgres lock manager which allow the

use of long term cooperative locks managed by the user applications.

Submitted by: Massimo Dal Zotto <dz@cs.unitn.it>
This commit is contained in:
Marc G. Fournier
1996-10-11 03:22:59 +00:00
parent 97906ac697
commit 2663dfd94e
2 changed files with 311 additions and 3 deletions

View File

@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/storage/lmgr/proc.c,v 1.5 1996/08/01 05:11:33 scrappy Exp $
* $Header: /cvsroot/pgsql/src/backend/storage/lmgr/proc.c,v 1.6 1996/10/11 03:22:59 scrappy Exp $
*
*-------------------------------------------------------------------------
*/
@@ -46,7 +46,7 @@
* This is so that we can support more backends. (system-wide semaphore
* sets run out pretty fast.) -ay 4/95
*
* $Header: /cvsroot/pgsql/src/backend/storage/lmgr/proc.c,v 1.5 1996/08/01 05:11:33 scrappy Exp $
* $Header: /cvsroot/pgsql/src/backend/storage/lmgr/proc.c,v 1.6 1996/10/11 03:22:59 scrappy Exp $
*/
#include <sys/time.h>
#ifndef WIN32
@@ -361,6 +361,10 @@ ProcKill(int exitStatus, int pid)
ProcReleaseSpins(proc);
LockReleaseAll(1,&proc->lockQueue);
#ifdef USER_LOCKS
LockReleaseAll(0,&proc->lockQueue);
#endif
/* ----------------
* get off the wait queue
* ----------------