Monday, November 08, 2010 at 12:05 AM.

system.verbs.builtins.radio.weblog.oldStuff.publishInThread

on publishInThread (adrblog, when) {
	<<3/10/01; 11:40:31 AM by DW
		<<I got tired of waiting for the Publish button on the Weblog page. I felt it should do the publishing in a background thread and let me get on with reading and routing. So this is called from radio.weblog.main, when it does a publish operation. It's launched in a separate thread. The code is not re-entrant, so we need a semaphore.
	semaphore.lock (this, 3600);
	try {
		radio.weblog.publish (adrblog);
		radio.weblog.publish (adrblog, d:when); //publish most recent archive page
		radio.weblog.publishRss (adrblog)};
	semaphore.unlock (this)}
<<bundle //test code
	<<thread.callscript (@radio.weblog.publishInThread, {@myuserlanddata.blogs.default, clock.now ()})



This listing is for code that runs in the OPML Editor environment. I created these listings because I wanted the search engines to index it, so that when I want to look up something in my codebase I don't have to use the much slower search functionality in my object database. Dave Winer.