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

C#

 
AnswerRe: Moving tool/menuStrip to container without loosing event handlers how? Pin
TrooperIronMan8-Jan-07 13:35
TrooperIronMan8-Jan-07 13:35 
QuestionHow to add event handler to control created at run time. Pin
TrooperIronMan8-Jan-07 6:03
TrooperIronMan8-Jan-07 6:03 
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 
nevermind.. i think ill give up for now and just use a modified spinlock!

im writing a simple lock-free queue (intended for efficient multithreaded use) and im not sure ive quite figured out the logic behind the use of Interlocked.CompareExchange(). would code like the following produce the correct result of adding a new linked list node to the tail of a list under multithreading conditions??
<br />
while (null != Interlocked.CompareExchange(ref _tail.next, newNode, null))<br />
Thread.Sleep(1);<br />
_tail = newNode;<br />

thanks in advance Wink | ;)

-- modified at 12:40 Monday 8th January, 2007


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 
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 

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.