summaryrefslogtreecommitdiff
path: root/libpipe/pipe.h
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1995-08-29 18:38:51 +0000
committerMiles Bader <miles@gnu.org>1995-08-29 18:38:51 +0000
commit7a1db17ac5069dd7dda2f42b6a0fda651d7b7f70 (patch)
treeaae30b21f5c061c10e9a78405714a6b0374c97bd /libpipe/pipe.h
parentb3b6efaf4117e067cc1c738e01f853789aaa860c (diff)
(pipe_acquire_reader, pipe_acquire_writer, pipe_add_reader, pipe_add_writer):
`aquire' -> `acquire'.
Diffstat (limited to 'libpipe/pipe.h')
-rw-r--r--libpipe/pipe.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/libpipe/pipe.h b/libpipe/pipe.h
index 005a1873..01a92195 100644
--- a/libpipe/pipe.h
+++ b/libpipe/pipe.h
@@ -62,7 +62,7 @@ struct pipe
while a thread is waiting to read from a pipe and that pipe gets
deallocated (say by socket_shutdown), it doesn't actually go away until
the reader realizes what happened. It is normally frobbed using
- pipe_aquire & pipe_release, which do locking as well.. */
+ pipe_acquire & pipe_release, which do locking as well.. */
unsigned readers, writers;
/* Various flags, from PIPE_* below. */
@@ -159,7 +159,7 @@ error_t pipe_create (struct pipe_class *class, struct pipe **pipe);
/* Free PIPE and any resources it holds. */
void pipe_free (struct pipe *pipe);
-/* Take any actions necessary when PIPE aquires its first writer. */
+/* Take any actions necessary when PIPE acquires its first writer. */
void _pipe_first_writer (struct pipe *pipe);
/* Take any actions necessary when PIPE's last reader has gone away. PIPE
@@ -172,7 +172,7 @@ void _pipe_no_writers (struct pipe *pipe);
/* Lock PIPE and increment its readers count. */
extern inline void
-pipe_aquire_reader (struct pipe *pipe)
+pipe_acquire_reader (struct pipe *pipe)
{
mutex_lock (&pipe->lock);
pipe->readers++;
@@ -180,7 +180,7 @@ pipe_aquire_reader (struct pipe *pipe)
/* Lock PIPE and increment its writers count. */
extern inline void
-pipe_aquire_writer (struct pipe *pipe)
+pipe_acquire_writer (struct pipe *pipe)
{
mutex_lock (&pipe->lock);
if (pipe->writers++ == 0)
@@ -213,7 +213,7 @@ pipe_release_writer (struct pipe *pipe)
extern inline void
pipe_add_reader (struct pipe *pipe)
{
- pipe_aquire_reader (pipe);
+ pipe_acquire_reader (pipe);
mutex_unlock (&pipe->lock);
}
@@ -221,7 +221,7 @@ pipe_add_reader (struct pipe *pipe)
extern inline void
pipe_add_writer (struct pipe *pipe)
{
- pipe_aquire_writer (pipe);
+ pipe_acquire_writer (pipe);
mutex_unlock (&pipe->lock);
}