Date: Mon, 28 Dec 1998 14:14:03 -0500 Message-Id: <199812281914.OAA02745@envy.delorie.com> From: DJ Delorie To: djgpp AT delorie DOT com In-reply-to: (ok11 AT ihatespam DOT sprint DOT ca) Subject: Re: Locking Code References: Reply-To: djgpp AT delorie DOT com > class My_Class > > Would the locking procedure be the same? First off, be careful using member functions as callbacks - they expect a hidden extra first parameter. Second, if the function is virtual, you must lock the class's virtual table also. Third, be aware that you must lock the object itself, not just the method you call on it. Otherwise, it's just like a regular function.