summaryrefslogtreecommitdiff
path: root/include/producer.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/producer.h')
-rw-r--r--include/producer.h38
1 files changed, 2 insertions, 36 deletions
diff --git a/include/producer.h b/include/producer.h
index d42e148ea6..d120fbc145 100644
--- a/include/producer.h
+++ b/include/producer.h
@@ -1,4 +1,4 @@
-/* Copyright (c) 2015 The Chromium OS Authors. All rights reserved.
+/* Copyright 2015 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*
@@ -31,45 +31,11 @@ struct producer_ops {
struct producer {
/*
- * A producer references the consumer at the other end of the queue.
- * This allows the producer to notify the consumer when new units are
- * added to the queue.
- */
- struct consumer const *consumer;
-
- /*
- * A producer also references the queue that it is writing into. This
- * and the consumer reference above could be more flexibly replaced by
- * a queue manager object that could handle multiple producer/consumers
- * or alternate notification mechanisms. But that complexity is not
- * yet warranted.
+ * A producer references the queue that it is writing into.
*/
struct queue const *queue;
struct producer_ops const *ops;
};
-/*
- * Notify the producer by calling its read method directly, as opposed to from
- * a deferred callback or another task.
- */
-void producer_notify_directly(struct producer const *producer, size_t count);
-
-/*
- * Write a single unit to the queue and notify the associated consumer. Return
- * the number of units written.
- */
-size_t producer_write_unit(struct producer const *producer, void const *unit);
-
-/*
- * Write multiple units to the queue, using the provided memcpy like routine
- * and notify the consumer. Return the number of units written.
- */
-size_t producer_write_memcpy(struct producer const *producer,
- void const *units,
- size_t count,
- void *(*memcpy)(void *dest,
- void const *src,
- size_t n));
-
#endif /* INCLUDE_PRODUCER_H */