I have the IKernelTask and its derivative classes (input, make different kernel functions for sound. .) Also I have CKernel which runs various kernel functions. CKernel has a function execution () that runs through a list of kernel tasks and runs their update () function.
I am having difficulty sending data between kernel works, so I tried to execute the kernel objects in the context of the kernel object sending the data and then the kernel functions in update () Is sent in the same way.
The execution of CKernel () is: (CKernel and orchell) for each kernel task: {Update (OCLL) ); }
In the main:
while (current) {oKernel.Execute (OKernel); } This will allow kernel work to be forwarded to the data between the kernel functions, by providing access to the kernel through their update () function.
However: 1. Is this a good solution? If not, what would be another traditional way to share the data?
2. If this is the right solution; The problem is that CKernel needs to include IKernelTask and IKernelTask which should include CKernel. I have tried to declare further, but I am getting errors such as: C2027: Use of undefined type 'CKernel'
You need a header file with the definition of #include CKernel .
Comments
Post a Comment