Posts by canellas • 11 points
2 posts
-
1
votes0
answers35
viewsQ: Java Producer and Consumer with same production and consumption rate, despite different speeds
Hello! I’m starting to use BlockingQueue and ExecutorService to implement a Producer-Consumer. Looking at the page https://is.gd/BcIIXK, I removed line 24, and changed line 38 to…
-
0
votes0
answers58
viewsQ: How to use boost::Function with variable parameter number function?
In a library I use, a function Z expects a pointer to function with the following signature: typedef void (*func)(double, ...). I want to write a class in such a way that I can pass an object from…