Skip to content

Commit d137cb5

Browse files
committed
Remove SHM_QUEUE
Prior patches got rid of all the uses of SHM_QUEUE. ilist.h style lists are more widely used and have an easier to use interface. As there are no users left, remove SHM_QUEUE. Reviewed-by: Thomas Munro <thomas.munro@gmail.com> (in an older version) Discussion: https://postgr.es/m/20221120055930.t6kl3tyivzhlrzu2@awork3.anarazel.de Discussion: https://postgr.es/m/20200211042229.msv23badgqljrdg2@alap3.anarazel.de
1 parent 9600371 commit d137cb5

File tree

5 files changed

+0
-215
lines changed

5 files changed

+0
-215
lines changed

src/backend/storage/ipc/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ OBJS = \
2121
shm_mq.o \
2222
shm_toc.o \
2323
shmem.o \
24-
shmqueue.o \
2524
signalfuncs.o \
2625
sinval.o \
2726
sinvaladt.o \

src/backend/storage/ipc/meson.build

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ backend_sources += files(
1313
'shm_mq.c',
1414
'shm_toc.c',
1515
'shmem.c',
16-
'shmqueue.c',
1716
'signalfuncs.c',
1817
'sinval.c',
1918
'sinvaladt.c',

src/backend/storage/ipc/shmqueue.c

Lines changed: 0 additions & 190 deletions
This file was deleted.

src/include/storage/shmem.h

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,6 @@
2424
#include "utils/hsearch.h"
2525

2626

27-
/* shmqueue.c */
28-
typedef struct SHM_QUEUE
29-
{
30-
struct SHM_QUEUE *prev;
31-
struct SHM_QUEUE *next;
32-
} SHM_QUEUE;
33-
3427
/* shmem.c */
3528
extern void InitShmemAccess(void *seghdr);
3629
extern void InitShmemAllocation(void);
@@ -63,19 +56,4 @@ typedef struct
6356
Size allocated_size; /* # bytes actually allocated */
6457
} ShmemIndexEnt;
6558

66-
/*
67-
* prototypes for functions in shmqueue.c
68-
*/
69-
extern void SHMQueueInit(SHM_QUEUE *queue);
70-
extern void SHMQueueElemInit(SHM_QUEUE *queue);
71-
extern void SHMQueueDelete(SHM_QUEUE *queue);
72-
extern void SHMQueueInsertBefore(SHM_QUEUE *queue, SHM_QUEUE *elem);
73-
extern void SHMQueueInsertAfter(SHM_QUEUE *queue, SHM_QUEUE *elem);
74-
extern Pointer SHMQueueNext(const SHM_QUEUE *queue, const SHM_QUEUE *curElem,
75-
Size linkOffset);
76-
extern Pointer SHMQueuePrev(const SHM_QUEUE *queue, const SHM_QUEUE *curElem,
77-
Size linkOffset);
78-
extern bool SHMQueueEmpty(const SHM_QUEUE *queue);
79-
extern bool SHMQueueIsDetached(const SHM_QUEUE *queue);
80-
8159
#endif /* SHMEM_H */

src/tools/pgindent/typedefs.list

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2377,7 +2377,6 @@ SERIALIZABLEXIDTAG
23772377
SERVICE_STATUS
23782378
SERVICE_STATUS_HANDLE
23792379
SERVICE_TABLE_ENTRY
2380-
SHM_QUEUE
23812380
SID_AND_ATTRIBUTES
23822381
SID_IDENTIFIER_AUTHORITY
23832382
SID_NAME_USE

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy