lkml.org 
[lkml]   [1997]   [Nov]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: MOD_INC_USE_COUNT
Date
On Mon, 10 Nov 1997 22:18:45 +0100, Pavel Machek <pavel@Elf.mj.gts.cz>
wrote:
>There's a bigger error. Imagine me redesigning some code. Aha - but
>how can I know if someone depends on this code not blocking?

>It may be nice idea to add /* Must not block */ comment to every
>function that may not block... Anyone who has more knowledge than me
>volunteering?

For a debug/test environment, a routine which might block could
increment a blocking count via a global function. Then a routine being
studied could check that "potential blocking count" via another global
function during execution and display warning messages if it changed
unexpectedly.

john alvord jalvo@cloud9.net


\
 
 \ /
  Last update: 2005-03-22 13:40    [W:0.482 / U:0.004 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site