Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.programming.threads > #526
| From | ittium <ittium@gmail.com> |
|---|---|
| Newsgroups | comp.programming.threads |
| Subject | Thread Safety of "this" pointer |
| Date | 2011-09-04 22:52 +0530 |
| Organization | A noiseless patient Spider |
| Message-ID | <j40c4l$gnt$1@dont-email.me> (permalink) |
Group, There is a base class B and Two derived class D1 and D2. b is **shared** base class pointer. While d1 and d2 are derived class pointer thread 1 -------- *b=d1; b->execute(); thread 2 -------- *b=d2; Should I protect (using mutex) the above code. Since this pointer will change during the processing thanks Ittium
Back to comp.programming.threads | Previous | Next — Next in thread | Find similar | Unroll thread
Thread Safety of "this" pointer ittium <ittium@gmail.com> - 2011-09-04 22:52 +0530
Re: Thread Safety of "this" pointer David Schwartz <davids@webmaster.com> - 2011-09-04 15:31 -0700
Re: Thread Safety of "this" pointer itt ium <ittium@gmail.com> - 2011-09-05 01:43 -0700
Re: Thread Safety of "this" pointer ycwang <wangyongcong@gmail.com> - 2011-09-05 03:21 -0700
Re: Thread Safety of "this" pointer Sergei Organov <osv@javad.com> - 2011-09-05 21:46 +0400
csiph-web