![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, I'm in big trouble.. Did you know if sybase 11.9.2 under NT and/or Linux is thread safe ? I mean I've done a simple little C program with 2 thread (I use pthread under the two OS) to call a sql query... With 1 thread it's ok, but with 2 libcomn/libtcl crash !! (all my variable are "thread safe") even a simple test like : void *my_thread_fc(...) { LOGINREC *login; DBPROCESS *dbproc; login = dblogin(); |
#3
| |||
| |||
|
|
On Tue, 03 Aug 2004 12:21:55 +0200, captain biceps wrote: You are using DB-Library, which is NOT thread-safe. Furthermore, the 11.1.1 CT-library (on linux) is not thread-safe either, though it should be thread-safe on Windows. |
|
On linux/unix you need to link with the _r libraries, BTW. |
#4
| |||
| |||
|
|
Michael Peppler wrote: On Tue, 03 Aug 2004 12:21:55 +0200, captain biceps wrote: You are using DB-Library, which is NOT thread-safe. Furthermore, the 11.1.1 CT-library (on linux) is not thread-safe either, though it should be thread-safe on Windows. Is that with or without the _r you mention below? |
#5
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |