delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/12/28/14:05:20

From: "Jay" <ok11 AT ihatespam DOT sprint DOT ca>
Newsgroups: comp.os.msdos.djgpp
Subject: Locking Code
Lines: 32
Organization: n/a
X-Newsreader: Microsoft Outlook Express 4.72.3110.5
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Message-ID: <MzQh2.55922$c8.28442167@hme2.newscontent-01.sprint.ca>
Date: Mon, 28 Dec 1998 10:00:56 -0800
NNTP-Posting-Host: 209.148.242.81
X-Complaints-To: abuse AT sprint DOT ca
X-Trace: hme2.newscontent-01.sprint.ca 914871660 209.148.242.81 (Mon, 28 Dec 1998 14:01:00 EDT)
NNTP-Posting-Date: Mon, 28 Dec 1998 14:01:00 EDT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Here is a question. In C source, I'm used to locking code by doing this:

void My_Function()
{
    ...
}

void My_Function_End() { }

then locking the code by

_go32_dpmi_lock_code(My_Function, (long)My_Function_End -
(long)My_Function);

But then let say, if I have functions in a Class such as:

class My_Class
{
    public:
        My_Function1();
        My_Function2();
}class1, class2;

Would the locking procedure be the same?

--
------------------------------
Jay
ok11 AT ihatespam DOT sprint DOT ca
ICQ: 8521321


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019