Can one class generate a signal and handled by another class?

Posted by rashid on Stack Overflow See other posts from Stack Overflow or by rashid
Published on 2010-03-29T19:16:29Z Indexed on 2010/05/21 18:30 UTC
Read the original article Hit count: 172

Filed under:
|

Hello,

I have a buffer in class 'bufferClass' that will generate a signal to tell 'fileClass' that buffer is full and now write data to file? And when 'fileClass' is done writing to file, it will generate a signal to tell 'guiClass' that data can be read from file.

Is this possible? I have been reading http://www.gnu.org/s/libc/manual/html_node/Signal-Handling.html but not too sure how to generate such a signal? I don't need the exact code, just an idea.

Much appreciated.

i am using mac os X, x-code.

© Stack Overflow or respective owner

Related posts about signals

Related posts about c++