⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mmi_lock.h

📁 sparc硬件平台上的键盘驱动
💻 H
字号:
#ifndef MMI_LOCK_H#define MMI_LOCK_H/* 这个文件是临时的,以后有了自己的锁机制后可以替换掉 */#ifdef CROSS /* cross define */ //now is not define#include <fsu_pthread.h>#include <time.h>#include <asm-leon/clock.h>#include <signal.h>#define mmi_mutex_t          pthread_mutex_t#define mmi_mutext_init      pthread_mutex_init#define mmi_mutext_destroy   pthread_mutex_destroy#define mmi_mutex_lock       pthread_mutex_lock#define mmi_mutex_unlock     pthread_mutex_unlock#define mmi_thread_cond_t           pthread_cond_t#define mmi_thread_cond_init        pthread_cond_init#define mmi_thread_cond_destroy     pthread_cond_destroy#define mmi_thread_cond_wait        pthread_cond_wait#define mmi_thread_cond_timedwait   pthread_cond_timedwait#define mmi_thread_cond_signal      pthread_cond_signal#define mmi_thread_cond_broadcast   pthread_cond_broadcast#define mmi_thread_t         pthread_t#define mmi_thread_self      pthread_self#define mmi_thread_create    pthread_create#define mmi_thread_join      pthread_join#else /* x86 define */#include <pthread.h>#define mmi_mutex_t          pthread_mutex_t#define mmi_mutext_init      pthread_mutex_init#define mmi_mutext_destroy   pthread_mutex_destroy#define mmi_mutex_lock       pthread_mutex_lock#define mmi_mutex_unlock     pthread_mutex_unlock#define mmi_thread_cond_t           pthread_cond_t#define mmi_thread_cond_init        pthread_cond_init#define mmi_thread_cond_destroy     pthread_cond_destroy#define mmi_thread_cond_wait        pthread_cond_wait#define mmi_thread_cond_timedwait   pthread_cond_timedwait#define mmi_thread_cond_signal      pthread_cond_signal#define mmi_thread_cond_broadcast   pthread_cond_broadcast#define mmi_thread_t         pthread_t#define mmi_thread_self      pthread_self#define mmi_thread_create    pthread_create#define mmi_thread_join      pthread_join#endif /* end the x86 define */#endif /* mmi_lock_h end define */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -