Welcome![Sign In][Sign Up]
Location:
Search - QUEUE.h

Search list

[Other resourceShortPth

Description: 图论:最短路径算法实现 Graph.gph GraphBFS.h GraphM.h GraphOpr.h Queue.h sample.gph ShortPth.cpp ShortPth.dsp ShortPth.dsw ShortPth.ncb ShortPth.opt ShortPth.plg-graph theory : the shortest path algorithm Graph.gph GraphBFS.h GraphM.h Graph Opr.h Queue.h sample.gph ShortPth.cpp ShortP th.dsp ShortPth.dsw ShortPth.ncb ShortPth.o pt ShortPth.plg
Platform: | Size: 17017 | Author: silwol | Hits:

[CommunicationQueueTest

Description: VC++ 封装了队列类 /// /// /// ///// //this a example for using Queue ///////////////////////////////////////// #include \"Queue.h\" //define queue data struct struct QueueData { char data[20] int nId } //define queue typedef TQueue<QueueData> TMyQueue //put data into queue { QueueData data memset(&data, 0, sizeof(data)) strcpy(data.data, \"hello!\") data.nId = 0 m_pMyQueue.TryPut(data) } //try put data into queue { QueueData data memset(&data, 0, sizeof(data)) strcpy(data.data, \"hello!\") data.nId = 0 if(m_pMyQueue.TryPut(data) != 0) { MessageBox(\"put queue error\") } else { MessageBox(\"put queue success\") } } //get data from queue { QueueData data memset(&data, 0, sizeof(data)) m_pMyQueue.Get(data) MessageBox(data.data) } //try get data from queue { QueueData data memset(&data, 0, sizeof(data)) m_pMyQueue.TryGet(data) MessageBox(data.data) }-cohort of VC Packaging category ///////////////////////////////////////// / / this is a example for using Queue ///////////////////////////////////////// # include "Queue . h "/ / define queue data struct QueueData struct (char data [20] int nId) / / define queue typedef TQueuelt; QueueDatagt; TMyQueue / / put data into QueueData data queue (memset (data, 0, sizeof (data)) htpasswd (data.data, "hello!") data.nId m_pMyQueue.TryPut = 0 (data)) / / try put data into QueueData data queue (memset (data, 0, sizeof (data)) htpasswd (data. data, "hello!") data.nId = 0 if (m_pMyQueue.TryPut (data)! = 0) (MessageBox ( "put queue error")) else (MessageBox ( "put queue success"))) / / get data from QueueData data queue (memset (data, 0, sizeof (data))
Platform: | Size: 34517 | Author: zj | Hits:

[Internet-Networkepoll多线程

Description: Lock.cpp : 锁的操作 , 读锁可以并发 , 写锁独占. Queue.h : 队列的封装 , 队列的读和写都加了锁的保护. Socket.cpp : 套接口的简单封装. Thread.cpp : 线程的封装实现了些简单的线程停止,运行等功能 , 启动别的线程的时候需要继承次类. Worker.cpp : 用户接口类 , 用户需继承此类。 ListenThread.cpp(继承Thread.cpp) : 服务器监听线程.如果有客户端连接通知ThreadPool类,由ThreadPool类进行任务分派. TaskThread.cpp(继承Thread.cpp) : 具体任务类,负责接受客户端发送数据. ThreadPool.cpp (继承Thread.cpp) : 线程池类负责启动别的线程 , 并且进行线程调度。首先启动ListenThread.cpp类,如果有客户端 连接ListenThread.cpp类发送信号通知ThreadPool.cpp类,收到信号再分配给TaskThread.cpp类,进行处理。如果没有空闲任务类,动态再 创建一定数目的任务类。
Platform: | Size: 300757 | Author: 77501578@qq.com | Hits:

[CommunicationQueueTest

Description: VC++ 封装了队列类 /// /// /// ///// //this a example for using Queue ///////////////////////////////////////// #include "Queue.h" //define queue data struct struct QueueData { char data[20] int nId } //define queue typedef TQueue<QueueData> TMyQueue //put data into queue { QueueData data memset(&data, 0, sizeof(data)) strcpy(data.data, "hello!") data.nId = 0 m_pMyQueue.TryPut(data) } //try put data into queue { QueueData data memset(&data, 0, sizeof(data)) strcpy(data.data, "hello!") data.nId = 0 if(m_pMyQueue.TryPut(data) != 0) { MessageBox("put queue error") } else { MessageBox("put queue success") } } //get data from queue { QueueData data memset(&data, 0, sizeof(data)) m_pMyQueue.Get(data) MessageBox(data.data) } //try get data from queue { QueueData data memset(&data, 0, sizeof(data)) m_pMyQueue.TryGet(data) MessageBox(data.data) }-cohort of VC Packaging category /////////////////////////////////////////// this is a example for using Queue /////////////////////////////////////////# include "Queue . h "//define queue data struct QueueData struct (char data [20] int nId)// define queue typedef TQueuelt; QueueDatagt; TMyQueue// put data into QueueData data queue (memset (data, 0, sizeof (data)) htpasswd (data.data, "hello!") data.nId m_pMyQueue.TryPut = 0 (data))// try put data into QueueData data queue (memset (data, 0, sizeof (data)) htpasswd (data. data, "hello!") data.nId = 0 if (m_pMyQueue.TryPut (data)! = 0) (MessageBox ( "put queue error")) else (MessageBox ( "put queue success")))// get data from QueueData data queue (memset (data, 0, sizeof (data))
Platform: | Size: 33792 | Author: zj | Hits:

[Printing program19577_printer_monitoring.ZIP

Description: 打印机队列监视程序,监视文件开始打印及打印进程。 文件清单: main.cpp main.dfm main.h printerNotfier.cpp printerNotfier.h project1.cpp SortJobThread.cpp SortJobThread.h SpyPrinter.bpr SpyPrinter.cpp SpyPrinter.exe SpyPrinter.res Unit1.dfm -Printer queue surveillance procedures, surveillance documents and printing process to print. The list of documents: main.cppmain.dfmmain.hprinterNotfier.cppprinterNotfier.hproject1.cppSortJobThread.cppSortJobThread.hSpyPrinter.bprSpyPrinter.cppSpyPrinter.exeSpyPrinter.resUnit1.dfm
Platform: | Size: 264192 | Author: water1974 | Hits:

[Data structsShortPth

Description: 图论:最短路径算法实现 Graph.gph GraphBFS.h GraphM.h GraphOpr.h Queue.h sample.gph ShortPth.cpp ShortPth.dsp ShortPth.dsw ShortPth.ncb ShortPth.opt ShortPth.plg-graph theory : the shortest path algorithm Graph.gph GraphBFS.h GraphM.h Graph Opr.h Queue.h sample.gph ShortPth.cpp ShortP th.dsp ShortPth.dsw ShortPth.ncb ShortPth.o pt ShortPth.plg
Platform: | Size: 16384 | Author: silwol | Hits:

[Data structsLinQueue.h

Description: 数据结构(C++描述)链式队列类代码设计-Data structure (C++ Description) chain queue design category code
Platform: | Size: 1024 | Author: diyi | Hits:

[Special Effectsfacetrack

Description: facetrack.aps facetrack.cpp facetrack.clw facetrack.dsp facetrack.dsw facetrack.h facetrack.ncb facetrack.opt facetrack.rc facetrack.sln facetrack.suo facetrack.vcproj facetrack.vcproj.HUANGSHE-37F1E4.huangsheng.user facetrackDlg.cpp facetrackDlg.h PARA.cpp PARA.h Queue.cpp Queue.h resource.h StdAfx.cpp StdAfx.h 人脸识别程序-源码C++ 人脸识别程序-源码C-facetrack.apsfacetrack.cppfacetrack.clwfacetrack.dspfacetrack.dswfacetrack.hfacetrack.ncbfacetrack.optfacetrack.rcfacetrack.slnfacetrack.suofacetrack.vcprojfacetrack.vcproj.HUANGSHE-37F1E4.huangsheng.userfacetrackDlg.cppfacetrackDlg.hPARA.cppPARA.hQueue.cppQueue.hresource.hStdAfx. Face Recognition cppStdAfx.h procedures- source C++ Face Recognition Procedure- Source C
Platform: | Size: 3775488 | Author: 黄胜 | Hits:

[Linux-UnixMyLinuxThread5-25[1].tar

Description: LINUX 线程池源代码:Lock.cpp : 锁的操作 , 读锁可以并发 , 写锁独占. Queue.h : 队列的封装 , 队列的读和写都加了锁的保护. Socket.cpp : 套接口的简单封装. Thread.cpp : 线程的封装实现了些简单的线程停止,运行等功能 , 启动别的线程的时候需要继承次类. Worker.cpp : 用户接口类 , 用户需继承此类。 ListenThread.cpp(继承Thread.cpp) : 服务器监听线程.如果有客户端连接通知ThreadPool类,由ThreadPool类进行任务分派. TaskThread.cpp(继承Thread.cpp) : 具体任务类,负责接受客户端发送数据. ThreadPool.cpp (继承Thread.cpp) : 线程池类负责启动别的线程 , 并且进行线程调度。首先启动ListenThread.cpp类,如果有客户端 连接ListenThread.cpp类发送信号通知ThreadPool.cpp类,收到信号再分配给TaskThread.cpp类,进行处理。如果没有空闲任务类,动态再-LINUX source code of the thread pool
Platform: | Size: 10240 | Author: wsd | Hits:

[OtherQueue

Description: 数据结构Queue.h头文件,包含QInsert,QDelete and QFront-Queue.h data structure header files, including QInsert, QDelete and QFront
Platform: | Size: 1024 | Author: 杨穆智 | Hits:

[OS DevelopFifo

Description: Shows how to set up a FIFO data queue for sharing data between real-time tasks and user-level applications. The RT task creates two FIFOs, one for commands in from the user process and one for status back to the user process. As declared in common.h, there are three commands: turn the speaker on, turn it off, and set the frequency.-Shows how to set up a FIFO data queue for sharing data between real-time tasks and user-level applications. The RT task creates two FIFOs, one for commands in from the user process and one for status back to the user process. As declared in common.h, there are three commands: turn the speaker on, turn it off, and set the frequency.
Platform: | Size: 4096 | Author: sijith | Hits:

[Linux-UnixC10K

Description: Lock.cpp : 锁的操作 , 读锁可以并发 , 写锁独占. Queue.h : 队列的封装 , 队列的读和写都加了锁的保护. Socket.cpp : 套接口的简单封装. Thread.cpp : 线程的封装实现了些简单的线程停止,运行等功能 , 启动别的线程的时候需要继承次类. Worker.cpp : 用户接口类 , 用户需继承此类。 ListenThread.cpp(继承Thread.cpp) : 服务器监听线程.如果有客户端连接通知ThreadPool类,由ThreadPool类进行任务分派. TaskThread.cpp(继承Thread.cpp) : 具体任务类,负责接受客户端发送数据. ThreadPool.cpp (继承Thread.cpp) : 线程池类负责启动别的线程 , 并且进行线程调度。首先启动ListenThread.cpp类,如果有客户端 连接ListenThread.cpp类发送信号通知ThreadPool.cpp类,收到信号再分配给TaskThread.cpp类,进行处理。如果没有空闲任务类,动态再 创建一定数目的任务类。-asdfasdfadfadfadsfadf
Platform: | Size: 379904 | Author: fsdfsdfd | Hits:

[Consoleshape

Description: 用C++实现一个具体事例,形状作为基类,正方形,三角形等等作为派生类。来体现类的多态性,其中涉及多态,继承,虚函数的使用。-using a C++ example to illustrate polymorphism, virtual function and etc. The example has a base class of shape, and many concrete shapes as derived classes.
Platform: | Size: 20480 | Author: scorpioc | Hits:

[Data structs6

Description: 1、掌握队列的顺序存储和链接存储及队列操作 2、理解队列的不同存储实现下的头文件(queue.h和linkqueue.h)的应用 -1, control the order of the queue and the queue storage and storage operation link 2, understanding the different queue header files under the Data Storage (queue.h and linkqueue.h) applications
Platform: | Size: 31744 | Author: chen | Hits:

[Linux-Unixqueue_using_linkedlist

Description: implementation of queue using linked list. it uses own queue.h header file.
Platform: | Size: 6144 | Author: sandeep | Hits:

[Linux-Unixthread

Description: 概述一下原理和每个类的作用 (1): CTask 一个任务基类,作为线程的参数用 (2): CWorkThread:工作线程类,轮询检测参数是否可用,如果可用的话, 就去调用参数CTask的执 行函数Execute,如果参数不可用就等待 (3): CWorkQueue:是一个任务队列,里面装载CTask子类的对象,是一个对象的容器 (4): CWorkThreadPool:工作线程池,其中包含了工作线程组,调度线程,调度线程不停的检测 任务队列中是否有可用任务对象,如过取到一个有效的任务对象,就从工作线程组中查找出来 一个空闲的工作线程,把这个任务交给这个空闲的线程去执行,如果没有空闲线程则创建新 的工作线程并添加到工作线程组中。 (1),(2),(3),(4)组成了库的核心,可以稍加修改进行应用 其他附属类: (5):CSimpleUDP 一个简易的封装的UDP通讯类 (6):CLogHelper 一个线程安全的日志类,将日志存储到指定文件并能打印到标准输出 特点:支持windows和Linux平台 -Outline the principles and the role of each class (1): CTask a task base class, as arguments to thread (2): CWorkThread: Class of worker threads, polling detection parameters are available, if available, Go to the implementation of the function call parameters CTask Execute, if the parameter is not available to wait (3): CWorkQueue: a task queue, which loaded CTask subclass object is a container object (4): CWorkThreadPool: worker thread pool, which contains the group of worker threads, scheduling threads, thread scheduling non-stop testing Task queue is available in the task object, such as over the task of taking to a valid object, the thread from the Working Group to find out An idle worker thread, this task to the idle thread to execute, if no idle thread is to create a new The work of the thread and added to the thread group. (1), (2), (3), (4) form the core of the library, can be modified for application Other sub categories: (5): CSim
Platform: | Size: 38912 | Author: 金建业 | Hits:

[OtherCPPexam9

Description: 1. 编写程序 Node.h 实现例 9-5 的节点类,并编写测试程序 lab9_1.cpp 实现链表的基本操作。 2. 编写程序 link.h 实现例 9-6 的链表类。在测试程序 lab9_2.cpp 中声明两个整型链表 A和 B,分别插入 5 个元素,然后把 B 中的元素加入 A 的尾部。 3. 编写程序 queue.h,用链表实现队列(或栈)类。在测试程序 lab9_3.cpp 中声明一个 整型队列(或栈)对象,插入 5 个整数,压入队列(或栈),再依次取出并显示出来。 -1 Write a program to achieve cases 9-5 Node.h node classes and preparation of test procedures lab9_1.cpp realize list of basic operations. (2) Write a program link.h achieve cases 9-6 objectlist. In the test program lists lab9_2.cpp declare two integers A and B, five elements were inserted, and then B is added to A end of the elements. 3 programming queue.h, using chain queue (or stack) classes. In the test program lab9_3.cpp declare an integer queue (or stack) object, insert five integers, pressed into the queue (or stack), then turn out and displayed.
Platform: | Size: 650240 | Author: wolf | Hits:

[OtherCPPexam9

Description: 1. 声明 Point 类,有坐标_x,_y 两个成员变量;对 Point 类重载“++”(自增)、“--”(自减)运算符,实现对坐标值的改变。 2. 声明一个车(vehicle)基类,有 Run、Stop 等成员函数,由此派生出自行车(bicycle)类、汽车(motorcar)类,从 bicycle 和 motorcar 派生出摩托车(motorcycle)类,它们都有 Run、Stop 等成员函数。观察虚函数的作用。 1. 编写程序 Node.h 实现例 9-5 的节点类,并编写测试程序 lab9_1.cpp 实现链表的基本操作。 2. 编写程序 link.h 实现例 9-6 的链表类。在测试程序 lab9_2.cpp 中声明两个整型链表 A和 B,分别插入 5 个元素,然后把 B 中的元素加入 A 的尾部。 3. 编写程序 queue.h,用链表实现队列(或栈)类。在测试程序 lab9_3.cpp 中声明一个 整型队列(或栈)对象,插入 5 个整数,压入队列(或栈),再依次取出并显示出来。 -1 Point class declaration, coordinates _x, _y two member variables pairs Point class overloads " ++" (increment), " -" (decrement) operator to achieve the coordinate values ​ ​ change. (2) declare a car (vehicle) base class, with Run, Stop and other member functions, and derives a bike (bicycle), automobiles (motorcar) class derived from the bicycle and motorcar motorcycle (motorcycle) class, which are with Run, Stop and other member functions. Observe the role of virtual function. 1 Write a program to achieve cases 9-5 Node.h node classes and preparation of test procedures lab9_1.cpp realize list of basic operations. (2) Write a program link.h achieve cases 9-6 objectlist. In the test program lists lab9_2.cpp declare two integers A and B, five elements were inserted, and then B is added to A end of the elements. 3 programming queue.h, using chain queue (or stack) classes. In the test program lab9_3.cpp declare an integer queue (or stack) object, insert fiv
Platform: | Size: 1031168 | Author: wolf | Hits:

[Internet-NetworkMyLinuxThread

Description: 一个线程池的框架 Lock.cpp :锁的操作 , 读锁可以并发 , 写锁独占. Queue.h : 队列的封装 , 队列的读和写都加了锁的保护. Socket.cpp : 套接口的简单封装. Thread.cpp : 线程的封装实现了些简单的线程停止,运行等功能 , 启动别的线程的时候需要继承次类. Worker.cpp : 用户接口类 , 用户需继承此类。 ListenThread.cpp(继承Thread.cpp) : 服务器监听线程.如果有客户端连接通知ThreadPool类,由ThreadPool类进行任务分派. TaskThread.cpp(继承Thread.cpp) : 具体任务类,负责接受客户端发送数据.-The framework of a thread pool Lock.cpp: the lock operation, read locks can be complicated, write lock exclusive. Queue.h: a cohort of the package, the queue reads and writes are added to lock protection. Socket.cpp: simple package set interface. Thread.cpp: the thread package to achieve some simple thread stop operation, startup time other threads need to inherit such. Worker.cpp: user interface class, the user needs to inherit such. ListenThread.cpp (inherit Thread.cpp): thread server listener. If a client is connected by the notification class ThreadPool, ThreadPool class assignment. TaskThread.cpp (inherit Thread.cpp): responsible for specific tasks, accept the client sent the data.
Platform: | Size: 19456 | Author: 盖义 | Hits:

[Special EffectsQueue102

Description: 数据结构Queue.h头文件,包含QInsert,QDelete and QFront-Queue.h data structure header files, including QInsert, QDelete and QFront
Platform: | Size: 1024 | Author: sai35189 | Hits:
« 12 3 »

CodeBus www.codebus.net