Re: kpi socket filter: Safe to block in callbacks?
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com Vincent On May 25, 2005, at 3:05 PM, Josh Graessley wrote: That should be safe. -josh On May 25, 2005, at 2:38 PM, Brian Bergstrand wrote: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Is it safe to block on a R/W lock inside a socket filter callback? I'm specifically interested in sf_notify_func(). I doubt lock contention will be an issue for us at the point the notify callback happens, but it's always possible. Thanks. Brian Bergstrand <http://www.bergstrand.org/brian/> PGP Key ID: 0xB6C7B6A2 -----BEGIN PGP SIGNATURE----- Version: PGP Desktop 9.0.1 (Build 2130) This email sent to jgraessley@apple.com _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... It is safe up to the point it takes a long time to resolve the contention because some events are notified on the input thread and you don't want to hold up all the incoming network traffic. iQA/AwUBQpTwTXnR2Fu2x7aiEQLNgwCglmmXfGDO2+bs5Qs0n+GB5lN1ORUAn2zN 6Z4+Pzx1v65Y7efnWDgw8ShM =nVmj -----END PGP SIGNATURE----- _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/jgraessley% 40apple.com _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/vlubet% 40apple.com This email sent to vlubet@apple.com This email sent to site_archiver@lists.apple.com
participants (1)
-
Vincent Lubet