This is the mail archive of the cygwin-patches@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Probably unnecessary InterlockedCompareExchangePointer in List_removein thread.h


I think that the call to InterlockedCompareExchangePointer() can and should be
replaced by ordinary if and assignment. The synchronization it provides doesn't
seem to be necessary.

VH.


2005-05-29  Vaclav Haisman  <v.haisman@sh.cvut.cz>

	* thread.h (List_remove): Make node parameter const. Don't use
	InterlockedCompareExchangePointer.

Attachment: cygwin-thread_h.diff
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]