mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-11-16 12:34:45 +00:00
2011-03-08 Joel Sherrill <joel.sherrilL@OARcorp.com>
PR 1759/cpukit * posix/src/cancel.c, posix/src/pthreaddetach.c, posix/src/pthreadequal.c, posix/src/pthreadgetschedparam.c, posix/src/pthreadjoin.c, posix/src/pthreadkill.c: Some POSIX pthread services did not support using Classic API Task Ids.
This commit is contained in:
@@ -1,3 +1,11 @@
|
|||||||
|
2011-03-08 Joel Sherrill <joel.sherrilL@OARcorp.com>
|
||||||
|
|
||||||
|
PR 1759/cpukit
|
||||||
|
* posix/src/cancel.c, posix/src/pthreaddetach.c,
|
||||||
|
posix/src/pthreadequal.c, posix/src/pthreadgetschedparam.c,
|
||||||
|
posix/src/pthreadjoin.c, posix/src/pthreadkill.c: Some POSIX pthread
|
||||||
|
services did not support using Classic API Task Ids.
|
||||||
|
|
||||||
2011-03-03 Chris Johns <chrisj@rtems.org>
|
2011-03-03 Chris Johns <chrisj@rtems.org>
|
||||||
|
|
||||||
PR 1749/filesystem
|
PR 1749/filesystem
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ int pthread_cancel(
|
|||||||
if ( _ISR_Is_in_progress() )
|
if ( _ISR_Is_in_progress() )
|
||||||
return EPROTO;
|
return EPROTO;
|
||||||
|
|
||||||
the_thread = _POSIX_Threads_Get( thread, &location );
|
the_thread = _Thread_Get( thread, &location );
|
||||||
switch ( location ) {
|
switch ( location ) {
|
||||||
|
|
||||||
case OBJECTS_LOCAL:
|
case OBJECTS_LOCAL:
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ int pthread_detach(
|
|||||||
POSIX_API_Control *api;
|
POSIX_API_Control *api;
|
||||||
Objects_Locations location;
|
Objects_Locations location;
|
||||||
|
|
||||||
the_thread = _POSIX_Threads_Get( thread, &location );
|
the_thread = _Thread_Get( thread, &location );
|
||||||
switch ( location ) {
|
switch ( location ) {
|
||||||
|
|
||||||
case OBJECTS_LOCAL:
|
case OBJECTS_LOCAL:
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ int pthread_equal(
|
|||||||
* Validate the first id and return 0 if it is not valid
|
* Validate the first id and return 0 if it is not valid
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(void) _POSIX_Threads_Get( t1, &location );
|
(void) _Thread_Get( t1, &location );
|
||||||
switch ( location ) {
|
switch ( location ) {
|
||||||
|
|
||||||
case OBJECTS_LOCAL:
|
case OBJECTS_LOCAL:
|
||||||
@@ -60,7 +60,7 @@ int pthread_equal(
|
|||||||
* Validate the second id and return 0 if it is not valid
|
* Validate the second id and return 0 if it is not valid
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(void) _POSIX_Threads_Get( t2, &location );
|
(void) _Thread_Get( t2, &location );
|
||||||
switch ( location ) {
|
switch ( location ) {
|
||||||
|
|
||||||
case OBJECTS_LOCAL:
|
case OBJECTS_LOCAL:
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ int pthread_getschedparam(
|
|||||||
if ( !policy || !param )
|
if ( !policy || !param )
|
||||||
return EINVAL;
|
return EINVAL;
|
||||||
|
|
||||||
the_thread = _POSIX_Threads_Get( thread, &location );
|
the_thread = _Thread_Get( thread, &location );
|
||||||
switch ( location ) {
|
switch ( location ) {
|
||||||
|
|
||||||
case OBJECTS_LOCAL:
|
case OBJECTS_LOCAL:
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ int pthread_join(
|
|||||||
Objects_Locations location;
|
Objects_Locations location;
|
||||||
void *return_pointer;
|
void *return_pointer;
|
||||||
|
|
||||||
the_thread = _POSIX_Threads_Get( thread, &location );
|
the_thread = _Thread_Get( thread, &location );
|
||||||
switch ( location ) {
|
switch ( location ) {
|
||||||
|
|
||||||
case OBJECTS_LOCAL:
|
case OBJECTS_LOCAL:
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ int pthread_kill(
|
|||||||
if ( !is_valid_signo(sig) )
|
if ( !is_valid_signo(sig) )
|
||||||
rtems_set_errno_and_return_minus_one( EINVAL );
|
rtems_set_errno_and_return_minus_one( EINVAL );
|
||||||
|
|
||||||
the_thread = _POSIX_Threads_Get( thread, &location );
|
the_thread = _Thread_Get( thread, &location );
|
||||||
switch ( location ) {
|
switch ( location ) {
|
||||||
|
|
||||||
case OBJECTS_LOCAL:
|
case OBJECTS_LOCAL:
|
||||||
|
|||||||
Reference in New Issue
Block a user