Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Varnish: Dev

[patch] use pthread_timedjoin_np() only where it exists

 

 

Varnish dev RSS feed   Index | Next | Previous | View Threaded


slink at schokola

Oct 23, 2010, 7:43 AM

Post #1 of 2 (525 views)
Permalink
[patch] use pthread_timedjoin_np() only where it exists

r5452 breaks compilation for systems which don't have pthread_timedjoin_np().
This patch brings back the old code for such systems with one modification:
pthread_join() is only called if pthread_cancel() does not return an error.

Also, it changes exec_file_thread to exit with pthread_exit rather than return().

With this patch and http://www.varnish-cache.org/trac/ticket/663, make check
succeeds without error on Opensolaris snv_134, except for m00001.vtc, which did
already fail before for another reason I haven't yet understood (vmod doesn't
get unloaded after vcl destroy).

I haven't tested it on other platforms.
Attachments: varnish_pthread_timedjoin_np.patch (2.70 KB)


slink at schokola

Oct 28, 2010, 4:24 AM

Post #2 of 2 (526 views)
Permalink
Re: [patch] use pthread_timedjoin_np() only where it exists [In reply to]

Any feedback on this?

_______________________________________________
varnish-dev mailing list
varnish-dev [at] varnish-cache
http://lists.varnish-cache.org/mailman/listinfo/varnish-dev

Varnish dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.