mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 16:50:55 +08:00
Finished C5471 Integration
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@48 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
@@ -216,16 +216,19 @@ void sighand_test(void)
|
||||
}
|
||||
else
|
||||
{
|
||||
printf("sighand_test: Started waiter_main pid=%d\n" , waiterpid);
|
||||
printf("sighand_test: Started waiter_main pid=%d\n", waiterpid);
|
||||
}
|
||||
|
||||
/* Wait a bit */
|
||||
|
||||
fflush(stdout);
|
||||
usleep(500*1000);
|
||||
sleep(2);
|
||||
|
||||
/* Then signal the waiter thread. */
|
||||
|
||||
printf("sighand_test: Signaling pid=%d with signo=%d sigvalue=%d\n",
|
||||
waiterpid, WAKEUP_SIGNAL, SIGVALUE_INT);
|
||||
|
||||
sigvalue.sival_int = SIGVALUE_INT;
|
||||
#ifdef CONFIG_CAN_PASS_STRUCTS
|
||||
status = sigqueue(waiterpid, WAKEUP_SIGNAL, sigvalue);
|
||||
@@ -241,7 +244,7 @@ void sighand_test(void)
|
||||
/* Wait a bit */
|
||||
|
||||
fflush(stdout);
|
||||
usleep(500*1000);
|
||||
sleep(2);
|
||||
|
||||
/* Then check the result */
|
||||
|
||||
|
||||
@@ -161,6 +161,7 @@ void timedwait_test(void)
|
||||
}
|
||||
|
||||
printf("timedwait_test: Joining\n");
|
||||
fflush(stdout);
|
||||
status = pthread_join(waiter, &result);
|
||||
if (status != 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user