Click here to Skip to main content
15,901,205 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to add event handler to control created at run time. Pin
led mike8-Jan-07 6:29
led mike8-Jan-07 6:29 
GeneralRe: How to add event handler to control created at run time. Pin
TrooperIronMan8-Jan-07 6:32
TrooperIronMan8-Jan-07 6:32 
GeneralRe: How to add event handler to control created at run time. Pin
TrooperIronMan8-Jan-07 13:33
TrooperIronMan8-Jan-07 13:33 
QuestionSystem Hook Pin
lost in transition 8-Jan-07 6:03
lost in transition 8-Jan-07 6:03 
AnswerRe: System Hook Pin
Stefan Troschuetz8-Jan-07 6:19
Stefan Troschuetz8-Jan-07 6:19 
Questioninterlocked linked list [modified] Pin
mikewinny8-Jan-07 5:11
mikewinny8-Jan-07 5:11 
AnswerRe: interlocked linked list Pin
Luc Pattyn8-Jan-07 7:31
sitebuilderLuc Pattyn8-Jan-07 7:31 
GeneralRe: interlocked linked list Pin
mikewinny8-Jan-07 7:48
mikewinny8-Jan-07 7:48 
sorry, i dont think u were very convincing, im pretty sure this would work...

  • in neutral state, _tail.next is null; the end of the list.
  • the first thread executes the interlocked operation which succeeds and atomically sets _tail.next to something other than null.
  • this causes the interlocked operation to fail on any other thread, and spin.
  • the final assignment returns _tail.next to null (as a new list node has no next-node) and the list is coherent.

i think i just answered my own question there but i do get the feeling im missing something. i have more of an issue dequeuing a list node; ascertaining just how the de/enqueue code can interfere with each other and how i can get it to safely execute in parallel.


I worship his divine shadow. ^

GeneralRe: interlocked linked list [modified] Pin
Luc Pattyn8-Jan-07 8:47
sitebuilderLuc Pattyn8-Jan-07 8:47 
GeneralRe: interlocked linked list Pin
mikewinny8-Jan-07 9:01
mikewinny8-Jan-07 9:01 
GeneralRe: interlocked linked list Pin
Luc Pattyn8-Jan-07 9:19
sitebuilderLuc Pattyn8-Jan-07 9:19 
GeneralRe: interlocked linked list Pin
mikewinny8-Jan-07 9:23
mikewinny8-Jan-07 9:23 
QuestionTab Control Pin
Gal Edvi8-Jan-07 4:36
Gal Edvi8-Jan-07 4:36 
AnswerRe: Tab Control Pin
Eric Dahlvang8-Jan-07 4:51
Eric Dahlvang8-Jan-07 4:51 
GeneralRe: Tab Control Pin
Gal Edvi8-Jan-07 4:59
Gal Edvi8-Jan-07 4:59 
GeneralRe: Tab Control Pin
Eric Dahlvang8-Jan-07 5:11
Eric Dahlvang8-Jan-07 5:11 
GeneralRe: Tab Control Pin
Gal Edvi8-Jan-07 19:39
Gal Edvi8-Jan-07 19:39 
GeneralRe: Tab Control Pin
Eric Dahlvang9-Jan-07 3:22
Eric Dahlvang9-Jan-07 3:22 
QuestionGenerating a new button, from a button click? Pin
JayBoychuk8-Jan-07 3:58
JayBoychuk8-Jan-07 3:58 
AnswerRe: Generating a new button, from a button click? Pin
Mircea Puiu8-Jan-07 4:01
Mircea Puiu8-Jan-07 4:01 
GeneralRe: Generating a new button, from a button click? Pin
JayBoychuk8-Jan-07 5:50
JayBoychuk8-Jan-07 5:50 
GeneralRe: Generating a new button, from a button click? Pin
Mircea Puiu8-Jan-07 20:48
Mircea Puiu8-Jan-07 20:48 
GeneralA little bit more help Pin
Mircea Puiu8-Jan-07 21:38
Mircea Puiu8-Jan-07 21:38 
AnswerRe: Generating a new button, from a button click? Pin
Eric Dahlvang8-Jan-07 5:32
Eric Dahlvang8-Jan-07 5:32 
QuestionmyClass events Pin
Seishin#8-Jan-07 3:53
Seishin#8-Jan-07 3:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.