public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: marco atzeri <marco.atzeri@gmail.com>
To: cygwin@cygwin.com
Subject: Re: pthread help
Date: Thu, 12 Jul 2012 21:19:00 -0000	[thread overview]
Message-ID: <4FFF3F39.6050508@gmail.com> (raw)
In-Reply-To: <34152902.post@talk.nabble.com>

On 7/12/2012 9:48 PM, emon wrote:
>
> Need urgent help on thread: the goal here is the separtemask will take each
> image and separate different contours and for each contour in the image it
> will call handleobject thread. So every for loop will call the handeobject
> thread. However, object index variable needs to be passed in each thread.
> But only last value of objectndex is passed, this is becuase the speratemask
> function loops and repalces the value of obj.objindx and only the last value
> of obj.objindx is
> passed to all the threads. Is there anyway to pass each objectindex
> value in handleobject. The code runs fine if we uncomment the
> pthread_join(tid[objectIndex],NULL); but it will not give a parralel program
>

wrong mailing list ???

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

  reply	other threads:[~2012-07-12 21:19 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-12 19:48 emon
2012-07-12 21:19 ` marco atzeri [this message]
2012-07-12 21:52 ` LMH
2012-07-12 22:29   ` Larry Hall (Cygwin)
2012-07-12 22:53     ` LMH
2012-07-13  1:20       ` Andrey Repin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4FFF3F39.6050508@gmail.com \
    --to=marco.atzeri@gmail.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).