summaryrefslogtreecommitdiff
path: root/src/backend/storage/lmgr/Makefile
diff options
context:
space:
mode:
authorRobert Haas2016-11-22 19:26:40 +0000
committerRobert Haas2016-11-22 19:27:11 +0000
commite8ac886c24776295dd9b025386a821061da8e4d1 (patch)
treecdb4306afce149e7f9c8c0708d18ddee7737fc29 /src/backend/storage/lmgr/Makefile
parent1c7861e81b4220364bef75d2445e9c0619f3f3f8 (diff)
Support condition variables.
Condition variables provide a flexible way to sleep until a cooperating process causes an arbitrary condition to become true. In simple cases, this can be accomplished with a WaitLatch/ResetLatch loop; the cooperating process can call SetLatch after performing work that might cause the condition to be satisfied, and the waiting process can recheck the condition each time. However, if the process performing the work doesn't have an easy way to identify which processes might be waiting, this doesn't work, because it can't identify which latches to set. Condition variables solve that problem by internally maintaining a list of waiters; a process that may have caused some waiter's condition to be satisfied must "signal" or "broadcast" on the condition variable. Robert Haas and Thomas Munro
Diffstat (limited to 'src/backend/storage/lmgr/Makefile')
-rw-r--r--src/backend/storage/lmgr/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/storage/lmgr/Makefile b/src/backend/storage/lmgr/Makefile
index cd6ec73f08f..e1b787e838f 100644
--- a/src/backend/storage/lmgr/Makefile
+++ b/src/backend/storage/lmgr/Makefile
@@ -13,7 +13,7 @@ top_builddir = ../../../..
include $(top_builddir)/src/Makefile.global
OBJS = lmgr.o lock.o proc.o deadlock.o lwlock.o lwlocknames.o spin.o \
- s_lock.o predicate.o
+ s_lock.o predicate.o condition_variable.o
include $(top_srcdir)/src/backend/common.mk