version 1.2, 2025/03/09 15:20:18
|
version 1.4, 2025/05/01 21:02:31
|
Line 1
|
Line 1
|
/* |
/* |
* * |
* $Id$ |
* * * |
|
* * * |
|
* *************** |
|
* * * * * |
|
* * MUMPS * |
|
* * * * * |
|
* *************** |
|
* * * |
|
* * * |
|
* * |
|
* |
|
* locktab.h |
|
* lock table data structures |
* lock table data structures |
* |
* |
* |
* |
* Author: Serena Willis <snw@coherent-logic.com> |
* Author: Serena Willis <snw@coherent-logic.com> |
* Copyright (C) 1998 MUG Deutschland |
* Copyright (C) 1998 MUG Deutschland |
* Copyright (C) 2021 Coherent Logic Development LLC |
* Copyright (C) 2021, 2025 Coherent Logic Development LLC |
* |
* |
* |
* |
* This file is part of FreeM. |
* This file is part of FreeM. |
Line 35
|
Line 23
|
* You should have received a copy of the GNU Affero Public License |
* You should have received a copy of the GNU Affero Public License |
* along with FreeM. If not, see <https://www.gnu.org/licenses/>. |
* along with FreeM. If not, see <https://www.gnu.org/licenses/>. |
* |
* |
|
* $Log$ |
|
* Revision 1.4 2025/05/01 21:02:31 snw |
|
* Documentation updates |
|
* |
|
* Revision 1.3 2025/03/09 19:50:47 snw |
|
* Second phase of REUSE compliance and header reformat |
|
* |
|
* |
|
* SPDX-FileCopyrightText: (C) 2025 Coherent Logic Development LLC |
|
* SPDX-License-Identifier: AGPL-3.0-or-later |
**/ |
**/ |
|
|
#if !defined(__FREEM_LOCKTAB_H) |
#if !defined(__FREEM_LOCKTAB_H) |
Line 61 extern void lock(char *lockarg, long tim
|
Line 59 extern void lock(char *lockarg, long tim
|
extern void locktab_increment(char *key, long lck_timeout, short old_lock); |
extern void locktab_increment(char *key, long lck_timeout, short old_lock); |
extern void locktab_decrement(char *key, long lck_timeout); |
extern void locktab_decrement(char *key, long lck_timeout); |
extern void locktab_unlock_all(void); |
extern void locktab_unlock_all(void); |
|
extern void locktab_unlock_all_by_pid(const pid_t target_pid); |
extern locktab_ent_t *locktab_find(char *key); |
extern locktab_ent_t *locktab_find(char *key); |
extern locktab_ent_t *locktab_insert(char *key); |
extern locktab_ent_t *locktab_insert(char *key); |
extern int locktab_count(char *key); |
extern int locktab_count(char *key); |