mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-21 02:06:14 +08:00
删除rt_thread_sleep遗留
This commit is contained in:
+1
-1
@@ -12,7 +12,7 @@
|
||||
#include <pthread.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#define usleep rt_thread_sleep
|
||||
#define usleep rt_thread_delay
|
||||
|
||||
static void *test_thread(void *v_param) {
|
||||
return NULL;
|
||||
|
||||
+1
-1
@@ -18,7 +18,7 @@
|
||||
#include <sys/time.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#define usleep rt_thread_sleep
|
||||
#define usleep rt_thread_delay
|
||||
|
||||
/* Our event variable using a condition variable contruct. */
|
||||
typedef struct {
|
||||
|
||||
@@ -57,7 +57,7 @@ FINSH_FUNCTION_EXPORT(libc_lseek, lseek test for libc);
|
||||
|
||||
void sleep(int tick)
|
||||
{
|
||||
rt_thread_sleep(tick);
|
||||
rt_thread_delay(tick);
|
||||
}
|
||||
|
||||
int libc_fseek(void)
|
||||
|
||||
Reference in New Issue
Block a user