various formatting/comment fixups
Change-Id: I982b84fde71a9e378ffee7211a69e40715ef00e4
diff --git a/aos/linux_code/ipc_lib/queue.h b/aos/linux_code/ipc_lib/queue.h
index d27c6bf..828e8f4 100644
--- a/aos/linux_code/ipc_lib/queue.h
+++ b/aos/linux_code/ipc_lib/queue.h
@@ -37,7 +37,7 @@
// queue_length is how many messages the queue will be able to hold
// Will never return NULL.
static RawQueue *Fetch(const char *name, size_t length, int hash,
- int queue_length);
+ int queue_length);
// Same as above, except sets up the returned queue so that it will put
// messages on *recycle when they are freed (after they have been released by
// all other readers/writers and are not in the queue).
@@ -52,9 +52,8 @@
// put onto an undefined one of the recycle queues.
// Will never return NULL.
static RawQueue *Fetch(const char *name, size_t length, int hash,
- int queue_length,
- int recycle_hash, int recycle_queue_length,
- RawQueue **recycle);
+ int queue_length, int recycle_hash,
+ int recycle_queue_length, RawQueue **recycle);
// Doesn't update the currently read index (the read messages in the queue or
// the index). This means the returned message (and any others skipped with
diff --git a/aos/linux_code/ipc_lib/shared_mem.h b/aos/linux_code/ipc_lib/shared_mem.h
index 8366703..f1eb489 100644
--- a/aos/linux_code/ipc_lib/shared_mem.h
+++ b/aos/linux_code/ipc_lib/shared_mem.h
@@ -29,11 +29,13 @@
// clock_gettime(CLOCK_REALTIME, &identifier) gets called to identify
// this shared memory area
struct timespec identifier;
- // gets 0-initialized at the start (as part of shared memory) and
- // the owner sets as soon as it finishes setting stuff up
+ // Gets 0-initialized at the start (as part of shared memory) and
+ // the owner sets as soon as it finishes setting stuff up.
aos_condition creation_condition;
+
struct aos_mutex msg_alloc_lock;
void *msg_alloc;
+
// A pointer to the head of the linked list of queues.
// pointer points to a ::aos::Queue.
aos_global_pointer queues;