Questions tagged as 'hilos'

1
answer

how to create the body of a thread and use it in google test

First, forgive if the title is not the most appropriate. I am trying to write a google test, which launches several threads, as a testlogging. This would be the function that the threads would execute. void log(std::vector<int>&am...
asked by 19.09.2017 / 18:46
0
answers

How do I get out of this Thread?

This code is like a chronometer that counts up to 10, the problem is that after it no longer allows me to continue entering text with System.out.println or anything, if it does not finish running the complete code, how can I exit? of the? publ...
asked by 24.07.2017 / 01:48
2
answers

Firebase / Android - Wait for all the thread for a Handle

I have the following code: public synchronized void next(final RoomListQueryResultHandler handler) { this.setLoading(true); roomList = new ArrayList<Room>(); this.database.child("members").child(this.mUser.getUid...
asked by 28.06.2017 / 02:32
0
answers

Receive message with GetMessage of type struct and assign it to a variable

I have already sent the message to the desired thread through PostThreadMessage and in the lparam parameter I pass the memory address of the structure I want to send: PostThreadMessage( p->idHilo, WM_USER, 10 , (LPARAM)&estructura);...
asked by 21.05.2017 / 00:47
1
answer

String from a Thread to a Label

I have Thread , which generates a "query" (this works in a form other than the main one) and I would like to send a variable of type string (that is generated by the query) to be displayed in a Label that is in the fir...
asked by 09.05.2017 / 05:57
1
answer

"Hibernate" a process

I want to be able to hibernate a process, make it inactive, not run, but when you remove that state go back to where it was just before hibernating it. I have searched the internet for methods to do this, but I have not found anything. I tr...
asked by 26.03.2017 / 12:54
2
answers

Multiprocessing with processes in Python

I must write in the same file simultaneously for 4 processes, with threads I have no problem (even if I do not block the access, I guess for the GIL), but with processes is different because when you reach lock the process simply omits that part...
asked by 24.03.2017 / 02:53
1
answer

warning: [deprecation] in thread

thread problems As it could solve this type of problems the program runs well but I would like to know how to fix those warnings ================================================================================================= ============...
asked by 08.12.2016 / 03:16
1
answer

how to create a thread in c ++ with windows using _beginthreadex?

I am trying to create a thread within a member function of a class with _beginthreadex. void CapturaDeRed::startCapture() { unsigned threadID; HANDLE hTread; MyData *data=NULL; data->ifaceName = configCapture(); data-&g...
asked by 05.09.2016 / 18:07
2
answers

JAVA, keyboard input, bufferedReder

Very good, I could be given a hand with this error, I need to be able to parse the input (whole) from the keyboard and pass it to an object /**Clase Main: **/ public class app { public static void main(String[] args) { Persona...
asked by 30.03.2018 / 18:37