Search:
Type: Posts; User: vincegata
Search:
Search took 0.02 seconds.
-
September 9th, 2014, 06:02 PM
@OReubens -- about rule number one, why cannot I have a worker thread that is waiting for a user input from console?
-
September 8th, 2014, 08:56 PM
Hello,
// clang++ -g -std=c++11 main.cpp -pthread
#include <iostream>
#include <thread>
#include <unistd.h>
void thread1(void)
-
Hello,
Here is what I've got so far:
# Makefile
CXX = clang++
CXXFLAGS = -g -std=c++11
-
@laserlight -- that's was because of the string -- thanks a lot.
-
Thank you for responding but I get the same error. I'd like to use template specialization.
main.cpp:17:14: error: invalid operands to binary expression ('QuoteClass' and 'QuoteClass')
if...
-
Thank you for responding but I get the same error. I'd like to use template specialization.
main.cpp:17:14: error: invalid operands to binary expression ('QuoteClass' and 'QuoteClass')
if...
-
Hello,
Can you take a look why I am getting compile error.
Thank you.
// clang++ main.cpp -g -std=c++11 -o main
-
January 24th, 2014, 12:06 AM
Hi,
So I have a following function that converts int to string however it inserts the commas for thousands, millions, and so on. e.g. 65432 -> "65,432".
How do I make the conversion but have a...
-
December 29th, 2013, 03:06 PM
That's slick, @2kaud, thank you.
-
December 29th, 2013, 02:58 PM
the output:
99W8
I would like it to be:
99W8000
-
December 29th, 2013, 02:35 PM
Hi,
The code that I have does not work. Could some help -- thanks.
#include <iostream>
#include <iomanip>
-
December 29th, 2013, 12:29 PM
how could I've missed it... thank you!
-
December 29th, 2013, 12:11 PM
Hi,
The s1.size() actually returns 4, and test for equality fails. I am using g++ on Linux, debug target.
Could someone help. Thank you.
#include <iostream>
-
November 16th, 2013, 02:09 PM
@razzle - I asked a specific question and if you don't know the answer you just move on - it's that simple. I closed the thread because my requirements has changed.
-
November 11th, 2013, 08:34 PM
Sorry for coming back so late, I've been busy at work over timing. I know there should be a buffer for an asynchronous communication, I am just trying to figure out in which way the classes are aware...
-
October 27th, 2013, 10:22 AM
I updated my post, toApp() is the function I need to be implemented.
-
October 26th, 2013, 01:01 PM
Hi,
I need to implement a two-way asynchronous communication between two objects, not using any IPC.
What I have now is a producer-consumer model where producer sends a number "88" to consumer...
-
October 24th, 2013, 09:36 PM
Thank you for all the help I received, I've decided to merge the processes to use observer pattern instead of using shared memory.
-
October 18th, 2013, 09:16 PM
@Codeplug - ah, you helped me with multithreading too and now it came to the full circle... :)
I do use that code: it is now my consumer process where "producer" thread receives the data over FIFO...
-
October 18th, 2013, 01:37 PM
@OReubens - I am considering of merging my producer and consumer into the same process instead of using shared memory hence was my question about locked-free linked list. I cannot use...
-
October 17th, 2013, 07:52 PM
Yeah, I should do some testing too.
-
October 17th, 2013, 11:56 AM
@Codeplug - I am not sure if you read my post above the one that you quoted, but I do already have a running application using FIFO and it is too slow for me.
-
October 16th, 2013, 05:26 PM
@OReubens - so I have a producer and a consumer, the point is to send the data as fast as possible. Since synchronization takes time, a person who developed the code that I posted, used polling...
-
October 15th, 2013, 12:01 PM
@razzle - I am staying away from the third parties.
@codeplug - these are some financial data and there are a lot of them. I am using FIFO right now (with your help too btw :) ) but I found it to...
-
October 15th, 2013, 09:06 AM
@OReubens, that code sample is about using shared memory without locking so to reduce latency. I am looking at the codeplug's sample now.
@razzle, thanks for the code snippet, I'll re-use it...
|
Click Here to Expand Forum to Full Width
|