Questions tagged [eventqueue]
77 questions
0
votes
1 answer
How to create queue of events in order by date
I am trying to create a queue of events and I want to be able to insert and delete from the middle of the queue in constant time, something like this:
3446 --- 9493 --- 15969 --- 48381
where the number could be millis from now, or whatnot.
How…
user12211419
0
votes
1 answer
Event queue cleanup
In my Tcl extension, a secondary thread is filling the Tcl event queue with events; the events contain pointers to structures with a dynamic life time.
What is the right strategy for ensuring that no events with dangling pointers to de-allocated…

user1254127
- 118
- 6
0
votes
0 answers
How to return a custom type from View (GUI) to controller?
I'm making an MVC game called Swingy for a 42 project, it requires me to have a console and a GUI view implemented in the MVC pattern. I figured that I would have an instance of my view (either GUI or console within the controller). So I made an…

tstephen
- 1
- 2
0
votes
1 answer
Is there any difference between event queue and task queue?
I am a little confused about these two names,are they the same with each other?

Chor
- 833
- 1
- 5
- 14
0
votes
0 answers
JavaScript Runtime : criteria to be in the `Event Queue`
In many examples explaining the Event Loop, they always use the setTimeout to illustrate it.
According to those explanations, when the JS runtime meets the setTimeout instruction, it knows there is a callback so it puts the instruction in the Event…

Pil
- 1
0
votes
0 answers
How to process large DefaultStyledDocument and catch a cancel event?
I have a JTextPane with an extended DefaultStyledDocument. Updating the document takes about 2 minutes. Currently I am breaking it up into steps and updating on the swing thread with InvokeAndWait for each step. I have a progress bar and a cancel…

user1819780
- 105
- 11
0
votes
1 answer
eventqueue meaning of arrow
because I couldn't find anything in google that would explain that, I decided to turn myself to ask you what the arrow in this specific example does, I never saw that expression so I don't really get it what it does.
Site I try to learn from:…

zapole
- 39
- 4
0
votes
1 answer
What's wrong with this use of EventQueue.invokeLater?
So I was trying to figure out how this snake game works:
http://zetcode.com/tutorials/javagamestutorial/snake/
When I copied the code into a compiler, I got many errors in this one block of code:
public static void main(String[] args) {
…

lefty
- 25
- 4
0
votes
1 answer
How to properly asychronously load UI component using Event Queues in ZK framework?
I have a custom composer/controller class that extends GenericForwardComposer. Inside this class I have some methods that are being used to initialize UI components with data. This is a very long operation and takes time to complete. Due to…

tony
- 267
- 2
- 11
- 23
0
votes
0 answers
Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: org.opencv.core.Mat.n_Mat()J
I'm doing OpenCv program in Java. This error keep popping up.
Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: org.opencv.core.Mat.n_Mat()J
at org.opencv.core.Mat.n_Mat(Native Method)
at…

Kantie
- 1
0
votes
1 answer
In the case of node js the event queue or task queue is only meant for queuing tasks?
In the case of nodeJs the event queue or task queue is only meant for queuing tasks and if any kind of asynchronous call is there , is that handled by c++ api's present within libuv library .
for example if any db query is happening , how exactly…

Piyush Biswal
- 137
- 1
- 8
0
votes
0 answers
Having "AWT-EventQueue-0" java.lang.StackOverflowError with specific variable set
I am coding this program to solve the following equation:
ax+by+cz+....+nk <= d
a, b, c, ..., n and d will be input by user.
Imaging that a, b, c, ..., n are the price list and x y z... k are the quantity. Giving you a money amount of d, you need to…

Khoa Đặng Quang
- 1
- 1
0
votes
1 answer
How to prepend message to Javascript event queue? (Canceling long running methods)
I have a nonstandard scenario, I am making a embedded ebook reader which uses webview to show local html epub files.
What I do is via ajax I load all the html files, parse their contents and append them to body, ajaxes area quick but the callbacks…

urSus
- 12,492
- 12
- 69
- 89
0
votes
1 answer
On closing the main Swing window, the other thread on the EventQueue gets not created
I write Java SE 8 desktop application. It's got a Swing UI.
Platform:
Eclipse IDE
Windows 10 OS
Now when I close the main window, by pressing on the "X" on the top-right-corner, I have a listener to listen for such event.
The listener right here:
…

ucas
- 417
- 1
- 11
- 30
0
votes
1 answer
A Non Blocking Event Loop in Nodejs
I was trying to implement an event loop. The purpose of the loop is simple:
If, the queue is not empty, let task be the oldest entry in the queue.
Process task
If, task generates a return value, cache it.
Check the queue for task.
If, the queue is…

Abrar Hossain
- 2,594
- 8
- 29
- 54