Tamamlanmış

Help me solve C++ code

I'm looking for a very experienced C++ developer.

I'm trying to learn multithreading basics for image processing in C++. I come from a different API background where I've done this often and I'm trying to get my code ported to C++ using the std::thread function. This is my current pseudocode:

static const int num_threads=4;

void FilterImage (int x1, int x2, int x3, int threadNr) {

// output defined...

// Every thread calculates a different line

for (int y = 0 + threadNr; y < output->height; y += num_threads) {

// Horizontal lines

for (int x = 0; x < output->width; x++) {

// Do Stuff...

}

}

}

int main() {

std::thread t[num_threads];

int param1, param2, param3;

int i;

for (i = 0; i < num_threads; i++)

t[i] = std::thread(FilterImage, param1, param2, param3, i);

for (i = 0; i < num_threads; i++)

t[i].join;

}

However, I cannot get this to work. I cannot pass i (the thread Id) as a parameter to my function. Visual Studio won't allow me and reports an error.

I would like to hire someone to guide me through solving this and helping me understand why. I am quite new to C++. We would chat over the website chat and I would get your assistance that way.

I would like to retain this method for multitasking since it is a port from my other API. My expectation is to have each thread tackle an image line.

I will most likely have other issues I will need help on so I am looking for someone to have on-hand for other problems.

Beceriler: Algoritma, C Programlama, C# Programlama, C++ Programlama, Yazılım Mimarisi

Daha fazlasını gör: code insert image doesnt work ipb, solve operating system problems, place can solve java code, c++ practice problems for beginners, c++ practice problems for beginners pdf, c++ advanced exercises, c++ programming examples with output, c++ practice exercises, c++ programs, c++ programming problems, c++ practice problems with answers, html code move stuff, livejasmin pass work, code star rating webs work, osdate zip code problems, need help php email code, source code algorithm band pass filter, help java source code mortgage payment calculator, matlab solve stochastic optimization problems, myspace band code problems

İşveren Hakkında:
( 7 değerlendirme ) Toronto, Canada

Proje NO: #19630056

Seçilen:

mostafaali80

Hi, I'm experienced C/C++ developer with a special knowledge of multithreading. So I can help you with this task. Kind regards, Mostafa

$7 USD / saat
(11 Değerlendirme)
3.7

Bu iş için 8 freelancer ortalamada $14/saat teklif veriyor

fastestJohn

Hello. I have just read your proposal in detail. I am very interested in your project. I am a C and C++ expert as you can see through my reviews. I have rich experiences and have taken part in programming contests. So Daha Fazla

$40 USD / saat
(40 Değerlendirme)
5.6
marianakuzmich

Hell, dear... How are you? I just read your requirements. I feel very confident in your project because I am talented C/C++ developer with 8+ years. If you give me a chance, i'm going to work perfectly. I'll wait Daha Fazla

$10 USD / saat
(35 Değerlendirme)
5.2
Victorier006

hello,how are you. i read your bid carefully. i am c/c++ expert and have full experience for 10 years. c++ language is my top skill. i can provide most quality and high speed. if you want to success, please contact Daha Fazla

$5 USD / saat
(5 Değerlendirme)
4.9
grigorywazin

Hi. I am a Senior Software Engineer with 12+ years of rich experience in C/C++ & Image Processing. I am very confident about this job and I can provide you with perfect help. Looking forward to discussing more in de Daha Fazla

$20 USD / saat
(9 Değerlendirme)
4.6
BestService222

Dear, Sir. Nice to meet you. Thank you for taking the time to read my proposal. I read your project description carefully and am very interested in working for your project. I am able to provide the best product w Daha Fazla

$7 USD / saat
(11 Değerlendirme)
4.5
vanqung012

Dear sir I have a lot of experiences in c/c++. I'm an expert in c/c++, algorithm and its data structure. If you ping me, you'll get a good result as you expected in a short time. Thanks, sir Waiting for your reply..

$5 USD / saat
(5 Değerlendirme)
1.7
$15 USD / saat
(0 Değerlendirme)
0.0