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

📄 queue_test.c

📁 开源备份软件源码 AMANDA, the Advanced Maryland Automatic Network Disk Archiver, is a backup system that a
💻 C
字号:
#include <queueing.h>#include <device.h>#include <amanda.h>int main(void) {    /* ignore SIGPIPE */    signal(SIGPIPE, SIG_IGN);    /* Comment out this line to disable threads. */    device_api_init();    /* The integer here is the block size to use. Set it to something     * bigger for better performance. */    return !do_consumer_producer_queue_full(fd_read_producer,                                            GINT_TO_POINTER(0),                                            fd_write_consumer,                                            GINT_TO_POINTER(1),                                            1,  /* Block size */                                            10, /* Buffer size. */                                            STREAMING_REQUIREMENT_DESIRED);}

⌨️ 快捷键说明

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