Skip to content

Commit c6b82fa

Browse files
committed
Add missing includes
Fix typos
1 parent cea0fc7 commit c6b82fa

4 files changed

Lines changed: 10 additions & 8 deletions

File tree

gc/ogc/cond.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ distribution.
6363

6464
#include <gctypes.h>
6565
#include <time.h>
66+
#include "mutex.h"
6667

6768
#define LWP_COND_NULL 0xffffffff
6869

@@ -115,7 +116,7 @@ s32 LWP_CondBroadcast(cond_t cond);
115116

116117

117118
/*! \fn s32 LWP_CondTimedWait(cond_t cond,mutex_t mutex,const struct timespec *reltime)
118-
\brief Timed wait on a conditionvariable.
119+
\brief Timed wait on a condition variable.
119120
\param[in] cond handle to the cond_t structure
120121
\param[in] mutex handle to the mutex_t structure
121122
\param[in] reltime pointer to a timespec structure holding the relative time for the timeout.

gc/ogc/lwp.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ lwp_t LWP_GetSelf(void);
143143

144144
/*! \fn s32 LWP_GetThreadPriority(lwp_t thethread)
145145
\brief Get the priority of the given thread.
146-
\param[in] thethread handle to the thread context whos priority should be returned. If NULL, the current thread will be taken.
146+
\param[in] thethread handle to the thread context whose priority should be returned. If NULL, the current thread will be taken.
147147
148148
\return current thread priority
149149
*/
@@ -152,7 +152,7 @@ s32 LWP_GetThreadPriority(lwp_t thethread);
152152

153153
/*! \fn s32 LWP_SetThreadPriority(lwp_t thethread,u32 prio)
154154
\brief Set the priority of the given thread.
155-
\param[in] thethread handle to the thread context whos priority should be changed. If NULL, the current thread will be taken.
155+
\param[in] thethread handle to the thread context whose priority should be changed. If NULL, the current thread will be taken.
156156
\param[in] prio new thread priority to set
157157
158158
\return old thread priority
@@ -236,7 +236,7 @@ s32 LWP_InitQueue(lwpq_t *thequeue);
236236

237237

238238
/*! \fn s32 LWP_CloseQueue(lwpq_t thequeue)
239-
\brief Close the thread synchronization queue and releas the handle
239+
\brief Close the thread synchronization queue and release the handle
240240
\param[in] thequeue handle to the thread's synchronization queue
241241
242242
\return 0 on success, non-zero on error
@@ -264,7 +264,7 @@ s32 LWP_ThreadTimedSleep(lwpq_t thequeue,const struct timespec *reltime);
264264

265265

266266
/*! \fn s32 LWP_ThreadSignal(lwpq_t thequeue)
267-
\brief Signals one thread to be revmoved from the thread synchronization queue and sets it back to running state.
267+
\brief Signals one thread to be removed from the thread synchronization queue and sets it back to running state.
268268
\param[in] thequeue handle to the thread's synchronization queue to pop the blocked thread off
269269
270270
\return 0 on success, non-zero on error

gc/ogc/message.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ distribution.
6262
*/
6363

6464
#include <gctypes.h>
65+
#include <time.h>
6566

6667
#define MQ_BOX_NULL 0xffffffff
6768

@@ -153,7 +154,7 @@ BOOL MQ_TimedJam(mqbox_t mqbox,mqmsg_t msg,const struct timespec *reltime);
153154
/*! \fn BOOL MQ_Receive(mqbox_t mqbox,mqmsg_t *msg,u32 flags)
154155
\brief Receives a message from the given message queue.
155156
\param[in] mqbox mqbox_t handle to the message queue
156-
\param[in] msg pointer to a mqmsg_t_t-type message to receive.
157+
\param[in] msg pointer to a mqmsg_t-type message to receive.
157158
\param[in] flags message flags (MQ_MSG_BLOCK, MQ_MSG_NOBLOCK)
158159
159160
\return bool result
@@ -164,7 +165,7 @@ BOOL MQ_Receive(mqbox_t mqbox,mqmsg_t *msg,u32 flags);
164165
/*! \fn BOOL MQ_TimedReceive(mqbox_t mqbox,mqmsg_t *msg,const struct timespec *reltime)
165166
\brief Receives a message from the given message queue, blocking until timeout.
166167
\param[in] mqbox mqbox_t handle to the message queue
167-
\param[in] msg pointer to a mqmsg_t_t-type message to receive.
168+
\param[in] msg pointer to a mqmsg_t-type message to receive.
168169
\param[in] reltime pointer to a timespec structure holding the relative time for the timeout.
169170
170171
\return bool result

gc/ogc/mutex.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ typedef u32 mutex_t;
8080
/*! \fn s32 LWP_MutexInit(mutex_t *mutex,bool use_recursive)
8181
\brief Initializes a mutex lock.
8282
\param[out] mutex pointer to a mutex_t handle.
83-
\param[in] use_recursive whether to allow the thread, whithin the same context, to enter multiple times the lock or not.
83+
\param[in] use_recursive whether to allow the thread, within the same context, to enter multiple times the lock or not.
8484
8585
\return 0 on success, non-zero on error
8686
*/

0 commit comments

Comments
 (0)