]> The Tcpdump Group git mirrors - libpcap/commitdiff
Suggest using pthread serialization calls on UN*X.
authorGuy Harris <[email protected]>
Sat, 10 May 2014 16:27:14 +0000 (09:27 -0700)
committerGuy Harris <[email protected]>
Sat, 10 May 2014 16:27:14 +0000 (09:27 -0700)
gencode.c

index b3488cd25f75c4ff388ebbe7e4dee2d92b2ce729..8d79a8e051d06f6650727bfa177e7bb628a54809 100644 (file)
--- a/gencode.c
+++ b/gencode.c
@@ -404,6 +404,11 @@ pcap_compile(pcap_t *p, struct bpf_program *program,
        u_int len;
        int  rc;
 
+       /*
+        * XXX - single-thread this code path with pthread calls on
+        * UN*X, if the platform supports pthreads?  If that requires
+        * a separate -lpthread, we might not want to do that.
+        */
 #ifdef WIN32
        extern int wsockinit (void);
        static int done = 0;