Skip to main content

All Questions

1 vote
0 answers
410 views

How to Implement Event-triggered Callback in C++

Assume in a system, users will register a callback function with system and that callback function will be called when an event is triggered but if the event is already triggered, the user will ...
aaa's user avatar
  • 1,649
0 votes
2 answers
631 views

Forcing web request to wait for an event callback

I have a web request (HttpRequest) which triggers a third library scanning method on my server that has an event handler attached to it: scanner.OnScanComplete += scanner_OnScanComplete; The web ...
Maya's user avatar
  • 1,422
0 votes
1 answer
2k views

Can i add a callback to a BackgroundWorker that is already running?

Is it possible to add a callback to a background worker while it is running ? bw.DoWork += new DoWorkEventHandler( some callback ); bw.RunWorkerAsync(); bw.DoWork += new DoWorkEventHandler( some ...
Virus721's user avatar
  • 8,193
6 votes
3 answers
3k views

Understanding JavaScript's single-threaded nature

I've been reading John Resig's "Secrets of a JavaScript Ninja" and it explains that JavaScript is single-threaded. However, I tried testing this and I'm not sure what to take away from here: // ...
wmock's user avatar
  • 5,462
0 votes
2 answers
1k views

Registering an event in a thread with a callback function

I am modifying my server such that every time it accepts a connection it should register a timeout event in a thread with a callback function. The timeout can be any number. There is only one ...
user avatar
4 votes
2 answers
2k views

Wxwidgets callback

i would like to add a callback function to a threaded function without freezing the main application. Ex: when I click on a button, it start a threaded function. I wanna inform the user when the work ...
Adam Paquette's user avatar
0 votes
1 answer
4k views

Timer's callback thread

I was thinking about how timers work, and there's something I don't fully understand. A Timer uses an event that is called when the time elapses. This I assume is triggered by an OS event that ...
Yochai Timmer's user avatar