Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

core: doc: documentation improvement lifo.h lpm.h msg.h mutex.h #962

Merged
merged 4 commits into from
May 13, 2014

Conversation

miri64
Copy link
Member

@miri64 miri64 commented Apr 1, 2014

Fixes #953

void mutex_wait(struct mutex_t *mutex);

/*struct mutex_entry_t * mutex_create_entry(int prio, struct tcb *proc);*/

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since noone used those, so I allowed myself to remove those and put mutex_wait() to mutex.c

@miri64 miri64 added this to the Release 2014.04 milestone Apr 1, 2014
* a value twice the LIFO will break.
* @file lifo.h
* @brief LIFO buffer API, read long description carefully
* @author Heiko Will <hwill@inf.fu-berlin.de>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Uh?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

core/lifo.c was authored by him according to doc, so I took an educated guess that this would be the case here, too. ;-)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Weird. lifo.c and lifo.h was only introduced in µkleos and Heiko never contributed to that AFAIK. @kaspar030, what do you think/remember?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just checked with blame: The documentation line was added there by @mehlis about a month ago. @mehlis how did you come to this?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, that should settle this.

@miri64
Copy link
Member Author

miri64 commented Apr 9, 2014

Addressed @OlegHahm's comments

@@ -95,13 +96,15 @@ int msg_send_to_self(msg_t *m);
/**
* @brief Send message from interrupt.
*
* Will be automatically chosen instead of msg_send if inISR() == true
* Will be automatically chosen instead of ``msg_sennd()`` if called from an
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

msg_sennd => msg_send

@thomaseichinger
Copy link
Member

msg.h L85 still contains @c.

* @param num Number of msg objects in array. MUST BE POWER OF TWO!
* @param[in] array Pointer to preallocated array of ``msg_t`` structures, must
* not be NULL.
* @param[in] num Number of ``msg_t`` structurs in array.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/structurs/structures/g

@miri64
Copy link
Member Author

miri64 commented May 3, 2014

Applied @thomaseichinger's comments and rebased to master

@thomaseichinger
Copy link
Member

ACK

* @detail This LIFO implementation very efficiently handles integer values.
* The caveat is that it **can only handle values between 0 and its own
* size - 1**. Also it can only handle up to one element of each value.
* If you insert a value twice the LIFO will break.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about tagging this last line as @note?

@OlegHahm
Copy link
Member

OlegHahm commented May 5, 2014

The usage of fullstops look rather arbitrary.


#include "queue.h"

/**
* @brief Mutex structure. Should never be modified by the user.
* @brief Mutex structure. Must never be modified by the user.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use @note?

@OlegHahm
Copy link
Member

OlegHahm commented May 5, 2014

ACK when my last comments are addressed.

@miri64
Copy link
Member Author

miri64 commented May 6, 2014

If you mean linebreaks: They are always such that length of line < 80 and that there are only linebreaks at a whitespace

@OlegHahm
Copy link
Member

OlegHahm commented May 6, 2014

I was referring the usage of @note and harmonizing the usage of full stops.

@miri64
Copy link
Member Author

miri64 commented May 6, 2014

Addressed @OlegHahm's comments and rebased.

@thomaseichinger
Copy link
Member

looks good to me. Do we need a reACK form @OlegHahm?

@thomaseichinger
Copy link
Member

Travis faild because of a apt-get install error, could you trigger it again?

@miri64
Copy link
Member Author

miri64 commented May 13, 2014

Done and rebased

@OlegHahm
Copy link
Member

ACK and go.

OlegHahm added a commit that referenced this pull request May 13, 2014
core: doc: documentation improvement lifo.h lpm.h msg.h mutex.h
@OlegHahm OlegHahm merged commit 0f4343b into RIOT-OS:master May 13, 2014
@miri64 miri64 deleted the issue-953 branch May 15, 2014 10:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: doc Area: Documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

core: documentation: lifo.h lpm.h msg.h mutex.h
7 participants