add macros: fc_queue_notify and fc_queue_notify_all
parent
7fbdb0cece
commit
af68bf5d6a
|
|
@ -61,6 +61,11 @@ static inline void fc_queue_terminate_all(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define fc_queue_notify(queue) fc_queue_terminate(queue)
|
||||||
|
|
||||||
|
#define fc_queue_notify_all(queue, count) \
|
||||||
|
fc_queue_terminate_all(queue, count)
|
||||||
|
|
||||||
//notify by the caller
|
//notify by the caller
|
||||||
void fc_queue_push_ex(struct fc_queue *queue, void *data, bool *notify);
|
void fc_queue_push_ex(struct fc_queue *queue, void *data, bool *notify);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -123,21 +123,21 @@ extern "C" {
|
||||||
/** get system total memory size
|
/** get system total memory size
|
||||||
* parameters:
|
* parameters:
|
||||||
* mem_size: return the total memory size
|
* mem_size: return the total memory size
|
||||||
* return: error no , 0 success, != 0 fail
|
* return: error no, 0 success, != 0 fail
|
||||||
*/
|
*/
|
||||||
int get_sys_total_mem_size(int64_t *mem_size);
|
int get_sys_total_mem_size(int64_t *mem_size);
|
||||||
|
|
||||||
|
|
||||||
/** get system CPU count
|
/** get system CPU count
|
||||||
* parameters:
|
* parameters:
|
||||||
* return: error no , 0 success, != 0 fail
|
* return: error no, 0 success, != 0 fail
|
||||||
*/
|
*/
|
||||||
int get_sys_cpu_count();
|
int get_sys_cpu_count();
|
||||||
|
|
||||||
/** get system boot time
|
/** get system boot time
|
||||||
* parameters:
|
* parameters:
|
||||||
* uptime: store the up time
|
* uptime: store the up time
|
||||||
* return: error no , 0 success, != 0 fail
|
* return: error no, 0 success, != 0 fail
|
||||||
*/
|
*/
|
||||||
int get_boot_time(struct timeval *boot_time);
|
int get_boot_time(struct timeval *boot_time);
|
||||||
|
|
||||||
|
|
@ -146,7 +146,7 @@ int get_boot_time(struct timeval *boot_time);
|
||||||
* stats: the stat array
|
* stats: the stat array
|
||||||
* size: max size of the array
|
* size: max size of the array
|
||||||
* count: return the count of the array
|
* count: return the count of the array
|
||||||
* return: error no , 0 success, != 0 fail
|
* return: error no, 0 success, != 0 fail
|
||||||
*/
|
*/
|
||||||
int get_mounted_filesystems(struct fast_statfs *stats,
|
int get_mounted_filesystems(struct fast_statfs *stats,
|
||||||
const int size, int *count);
|
const int size, int *count);
|
||||||
|
|
@ -156,7 +156,7 @@ int get_mounted_filesystems(struct fast_statfs *stats,
|
||||||
* parameters:
|
* parameters:
|
||||||
* processes: return the processes
|
* processes: return the processes
|
||||||
* count: return the count of the processes
|
* count: return the count of the processes
|
||||||
* return: error no , 0 success, != 0 fail
|
* return: error no, 0 success, != 0 fail
|
||||||
*/
|
*/
|
||||||
int get_processes(struct fast_process_info **processes, int *count);
|
int get_processes(struct fast_process_info **processes, int *count);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue