Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2012-10

CThreads for linked C library?

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Johann Glaser

Hi!

libusb(x) links to libpthread:

$ ldd /lib/x86_64-linux-gnu/libusb-1.0.so.0
linux-vdso.so.1 =>
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6
/lib64/ld-linux-x86-64.so.2

If I'm linking to libusb(x), the resulting executable also links to libpthread.

Looking at the libusbx source code (and API documentation) reveals, that they don't use threading, they only use the mutexes (pthread_mutex_*) and condition variables (pthread_cond_*).

Is it necessary to have the unit "CThreads" in my Uses clause?

Thanks
Hansi

Reply by email