site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:mime-version :content-type:from:in-reply-to:date:cc:content-transfer-encoding :message-id:references:to:x-mailer; bh=4KFulV6Gpa1v6Gls3YuuxKf6lHyiFQRaT8bhM/fiCss=; b=QRjwmyU7mFDgRo/W4gqdVWSM2If8pkHTc24Ojr2NVN9Ytw2YLw9oF9CLgxhC1JMu3n aNzol3/GfIz7USo+aZVVVTW2TTN9Htb8fH/WPpwtr/KNOoIBf9Pt+Gj3QixN7EM2kCbz JbCW2jkD7xz0a4YR+tcRmLrzooOccnKpcWlQo= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; b=P6Pcm+McoxIjvu/X52NyssC8GDxDiD0bwV4sQ581x+OJBHTyml3TomLl2FuUQr3XeW 47ecSjnamRg4H5gQhzU718D5961xDisn5o+CiMX+zj6EYrdyuhLLEZ9xHIyhr/hrDamL xDSFH6fKCAgJaD7GZk5OicJpfN2xTne5Lev8k= On Dec 1, 2010, at 12:13 AM, Marc Majka wrote:
What OS version is this on, and how much is getting logged?
10.6.4 I think.
If it's sufficient to maintain a circular queue of messages internal to your app, you could allocate an array of aslmsg structures:
This would be my preferred option.
asl_circular_queue = (aslmsg *)calloc(CIRCULAR_QUEUE_SIZE, sizeof(aslmsg));
and use asl_new() / asl_set() to make messages. Then hold them in the array
asl_circular_queue[cursor] = new_msg; cursor = (cursor + 1) % CIRCULAR_QUEUE_SIZE;
Do I need to asl_new/asl_free for every asl_set or can a message allocated with asl_new be reused multiple times? Thanks, Joel --- http://twitter.com/wagerlabs _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com
participants (1)
-
Joel Reymont