events - C signals vs. eventhandler -


i interested in c programming, lately. how have 'minimal' set of functions , datatypes (the c standard library) , still can create it.

but question: how make simple event-handling in c? have read signals.h header , looking for... if there signals exclusivly reserved user. can never sure environment unexpectedly raises 1 of signals can use c standard library. okay... there extended signals header in linux/unix 2(?) signals user... can imagine situations need more... besides want learn writing c platform independent. heard "emulating signals" listening socket... not platform independent.

is there way write c program has handle events without getting platform dependent of standard c library?

thank hints;

unfortunately think going run platform dependencies here. can write multithreaded application, 1 thread waits input , sends message / makes call when input has arrived (such waiting input string on console). not baked c99, , have rely on platform dependent third party libraries. here useful post on subject. know isn't answer want, hope helps.

c: multithreading

edit: c11 supports multithreading natively, see http://en.cppreference.com/w/c/header

i haven't used yet.


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

How to get multiresult with multicondition in Sql Server -