3,475 questions
3
votes
1
answer
176
views
Size of the state table in std::atomic wait implementation
While looking through implementations of the std::atomic<T>::wait, I've found that most of them used a simple hash table for mapping the state for each atomic location.
libcxx
static constexpr ...
-1
votes
2
answers
138
views
Python Selenium. Wait for page fully loaded [closed]
I am trying to implement website automation. Before I start to interact with website, I have to wait until page is fully loaded. The website work with great amount of data and fetching it from ...
1
vote
1
answer
139
views
How to set a cache service in NiFi 2.2.0 for a notify and wait process
All sites say: use DistributedMapCacheServer. But that's not a services in NiFi 2.2.0
(Image showing that DistributedMapCacheServer isint in the available servers in nifi 2.2.0)
If I search ...
0
votes
0
answers
84
views
isPresent method throws Exception after timeout instead of Boolean
I am using Serenity BDD. I have the following code:
@FindBy(id = "privacy-iframe")
WebElementFacade cookieBannerIFrame;
Boolean cookieDisplayed = withTimeoutOf(Duration.ofSeconds(20))....
1
vote
0
answers
58
views
Robot Framework : Wait JS events to be applied
I have Robot Framework tests that are automated in a Gitlab pipeline in a Docker environment (Apache + Robot Framework runs entirely on the Gitlab runner)
The problem is that regularly, tests fail ...
1
vote
1
answer
97
views
Python sigwait on SIGCHLD - does not return on child termination
I am trying to wait in python until either
some given signal fires (the signal itself can be ignored)
a child process exits
There is a function os.sigwait that seems to fit this purpose, but I ...
0
votes
1
answer
114
views
C++ condition variable doesn't block the thread on wait_until() using the time_poin::max()?
The below code doesn't block the thread and it gets into an infinite loop and keep printing
Waiting...
Waiting...
My idea is, the thread should block on the max() time and when it's set to now(), it ...
0
votes
1
answer
111
views
How to wait for child processes to complete [duplicate]
I have a BASH script that immediately exits while launching a child process that runs in the background. This child process can spawn its own child processes an unknown number of times over an ...
0
votes
1
answer
159
views
How to have a pool of Python tasks wait for a wake up event
I have created a pool of Python processes with the multiproccessing.pool function, any of which performs similar work. This is to have more work done simultaneously.
I would like all of the tasks to ...
0
votes
1
answer
47
views
JavaScript. Selenium. Implicit wait and driver.sleep won't work together
I have suck script for Twitter login automation. I've set waits on 21 line and I script to wait on 34 line. But driver.sleep on line 34 doesn't work
'use strict';
const {Browser,Builder, By, Key} = ...
-1
votes
2
answers
125
views
My java code is stuck in loop when it should end, i put a while that cant exit is condition
I was asked to write a java method executeInParallel that executes without active waiting and without race conditions(so i thought that i needed an ArrayBlockingQueue).I was also asked to not use ...
1
vote
1
answer
69
views
Wait() and NotifyAll() does not work in programm
I am writing a message oriented middleware, in which subscribers and publishers communicate via a queue in the middle class MessageBroker. publishers should drop messages into a queue of a topic if it ...
0
votes
0
answers
48
views
Tkinter wait_variable keeps waiting after the buttom is pressed in the second called of the class
I have a Tkinter window inside a class. This class is called from several protocols (Each one is a different script). In one of the protocols, the window works perfectly and gets the job done for all ...
0
votes
0
answers
73
views
Program hangs while forking in a loop
I have made a program in C that uses fork() function in a loop and in the child process it executes another program with execlp(). The second program is used to listen for signals (for example CTRL+c, ...
0
votes
1
answer
133
views
Implementation Bash pipes and redirections in c
interesting screen lldb
I encounter an issue with my implementation of pipes and output redirection.
It works fine individually, but when I try
'ls | wc > a',
it doesn't function as in real Bash. ...
1
vote
1
answer
72
views
how to join all threads after all files are visited?
I'm creating a CLI Search Engine for my project and I need to traverse the path given by the user. I'm using FileVisitor. To make things faster, I implemented multi-threading.
Here is FileCrawler.java:...
1
vote
1
answer
101
views
How can I keep a batch file going until the opened folder window is closed?
I've managed to run batch files using the /WAIT command which loads the program then stays running until a program is closed again. I want to do this but for a folder instead of a program, but when I ...
0
votes
1
answer
205
views
Wait for the response from a PHP page before submitting a form
Before submitting a form, I want to validate the data by calling a PHP page, which returns an empty string if everything is okay and an error message if not. My current code works, but async: false is ...
0
votes
1
answer
225
views
Replace boost::timed_wait() with std in c++17
I have a condition variable std::condition_variable my_cond;
I want to be able to replace boost::timed_wait() with an std equivalent one.
If the previously mentioned condition variable was a boost one,...
0
votes
1
answer
38
views
Issues with the placement of notify method
I was trying wait and notify methods. Notify method when put in run method does not work but when the same method is put in some other method it works.
public class NewProgram {
static int balance = 0;...
0
votes
1
answer
34
views
Waiting animation while download is being prepared and automatic download
Actually a simple task, but I just can't find a suitable solution
Data is collected in one form (HTML)
After sending, the server needs, among other things, a few seconds to provide the download, a ...
0
votes
2
answers
331
views
implicit wait in selenium
I am very confused about how to use implicit wait in selenium
driver.manage().timeouts().implicitlyWait(1, TimeUnit.SECONDS);
driver.manage().timeouts().pageLoadTimeout(4, TimeUnit.SECONDS);
I saw ...
-1
votes
1
answer
73
views
Issue in Passing data from one goroutine to another using channels
I have been able to develop below code which should pass data from one routine to another using go channels:
package main
import (
"fmt"
"sync"
)
func generateNumbers(...
0
votes
1
answer
56
views
Function should wait for previous function to finish processing before executing next line of code [duplicate]
I am working on TypeScript and I am trying to call a Modal within a function. But a service is called which validates some stuff from the server and based on what is returned I want to call the modal ...
1
vote
1
answer
94
views
Why `wait` for the child when `read` could supposedly block the parent process in pipe?
I was learning pipe and communication between processes and I saw the following code to ping-pong a byte between parent and child processes:
int
main(int argc, char **argv)
{
int p[2];
char ...