Messages in this thread | | | Date | Sat, 16 Jan 1999 01:36:27 -0500 | From | Chip Salzenberg <> | Subject | Re: C++ in kernel (was Re: exception in a device driver) |
| |
According to Chip Salzenberg: > void random_function() > { > hold<&one_semaphore> hold1; > hold<&other_semaphore> hold2; > // ... > }
BTW, typedefs and other syntactic tricks can make this look better. I didn't want to clutter the example with prettification when the point was to illustrate the basic mechanism. -- Chip Salzenberg - a.k.a. - <chip@perlsupport.com> "When do you work?" "Whenever I'm not busy."
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |