forked from Imagelibrary/rtems
2006-02-01 Joel Sherrill <joel@OARcorp.com>
* posix/inline/rtems/posix/cond.inl, posix/macros/rtems/posix/cond.inl, posix/src/conddestroy.c: Remove warnings.
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
2006-02-01 Joel Sherrill <joel@OARcorp.com>
|
||||||
|
|
||||||
|
* posix/inline/rtems/posix/cond.inl, posix/macros/rtems/posix/cond.inl,
|
||||||
|
posix/src/conddestroy.c: Remove warnings.
|
||||||
|
|
||||||
2006-02-01 Joel Sherrill <joel@OARcorp.com>
|
2006-02-01 Joel Sherrill <joel@OARcorp.com>
|
||||||
|
|
||||||
* rtems/src/tasks.c, rtems/src/taskvariableadd.c,
|
* rtems/src/tasks.c, rtems/src/taskvariableadd.c,
|
||||||
|
|||||||
@@ -56,10 +56,11 @@ RTEMS_INLINE_ROUTINE void _POSIX_Condition_variables_Free (
|
|||||||
|
|
||||||
RTEMS_INLINE_ROUTINE POSIX_Condition_variables_Control
|
RTEMS_INLINE_ROUTINE POSIX_Condition_variables_Control
|
||||||
*_POSIX_Condition_variables_Get (
|
*_POSIX_Condition_variables_Get (
|
||||||
Objects_Id *id,
|
pthread_cond_t *cond,
|
||||||
Objects_Locations *location
|
Objects_Locations *location
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
Objects_Id *id = (Objects_Id *)cond;
|
||||||
int status;
|
int status;
|
||||||
|
|
||||||
if ( !id ) {
|
if ( !id ) {
|
||||||
|
|||||||
@@ -53,8 +53,9 @@
|
|||||||
* PTHREAD_COND_INITIALIZER without adding overhead.
|
* PTHREAD_COND_INITIALIZER without adding overhead.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define ___POSIX_Condition_variables_Get_support( _id, _location ) \
|
#define ___POSIX_Condition_variables_Get_support( _cond, _location ) \
|
||||||
do { \
|
do { \
|
||||||
|
Objects_Id *id = (Objects_Id *)_cond; \
|
||||||
int _status; \
|
int _status; \
|
||||||
\
|
\
|
||||||
if ( !_id ) { \
|
if ( !_id ) { \
|
||||||
|
|||||||
@@ -27,8 +27,8 @@ int pthread_cond_destroy(
|
|||||||
pthread_cond_t *cond
|
pthread_cond_t *cond
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
register POSIX_Condition_variables_Control *the_cond;
|
POSIX_Condition_variables_Control *the_cond;
|
||||||
Objects_Locations location;
|
Objects_Locations location;
|
||||||
|
|
||||||
the_cond = _POSIX_Condition_variables_Get( cond, &location );
|
the_cond = _POSIX_Condition_variables_Get( cond, &location );
|
||||||
switch ( location ) {
|
switch ( location ) {
|
||||||
|
|||||||
Reference in New Issue
Block a user