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

📄 wxsched.h

📁 wimax BS simulation code,implemented under linux.
💻 H
字号:
/* * This piece of code is totally free. If any pitfalls found,  * please feel free to contact me at jetmotor@21cn.com * THANKS A LOT! */#ifndef _WXSCHED_H#define _WXSCHED_H#include <pthread.h>#include "types.h"#include "list.h"#include "mac.h"#include "wxtimer.h"#include "wxbuff.h"#define BITMAP_SIZE		6#define MAX_PRIORITY		192/* `prio_arrary' is greatly extensible if each policy has sub-priority. */typedef struct prio_array_s{	uint32_t nr_active;	uint32_t bitmap[BITMAP_SIZE];	struct list_head queue[MAX_PRIORITY];	/* an array of list for `sfcb' */}prio_array_t;typedef struct schedque_s{	pthread_mutex_t mutex;	wxtimer_t *watchdog;	wxbuff_t *map;	uint32_t signal;#define SCHED_WATCHDOG_TIMEOUT	0#define SCHED_MAP_STANDBY	1	prio_array_t *active;	prio_array_t *expired;	prio_array_t array[2];		uint32_t nr_ss;	struct list_head scheded_ss;	struct list_head mapie;			/* for non-normal ie */}schedque_t;extern schedque_t g_dlschedque;extern schedque_t g_ulschedque;extern int32_t dsched_init();extern int32_t usched_init();extern void * do_task_ulsched(void *arg);extern void * do_task_dlsched(void *arg);extern int32_t trytobe_fair(sfattr_t *sf);extern int32_t post_cdmaie(cdmacode_t *cdmacode);#endif	/* _WXSCHED_H */

⌨️ 快捷键说明

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