On Wed, Dec 28, 2011 at 1:02 PM, niXman <i.nix...@gmail.com> wrote:
> Patch is attached.
> May be useful.
>
> 2011/12/28 niXman <i.nix...@gmail.com>:
>> If I move declarations of clock_* functions from pthread_time.h to
>> pthread.h then the problem is solved.
>> But I am not sure that it's right.
>>

Does the following one-liner fix it?

Index: src/clock.c
===================================================================
--- src/clock.c (revision 4705)
+++ src/clock.c (working copy)
@@ -10,6 +10,7 @@
 #include <windows.h>

 #include "pthread.h"
+#include "pthread_time.h"

 #define POW10_7                 10000000
 #define POW10_9                 1000000000




>>
>> 2011/12/28 JonY <jo...@users.sourceforge.net>:
>>> On 12/28/2011 07:15, niXman wrote:
>>>> Hello list.
>>>>
>>>> I built the winpthreads and detected that libwinpthread-1.dll does not
>>>> export the clock_* functions.
>>>>
>>>> __pth_gpointer_locked
>>>> __pthread_clock_nanosleep
>>>> _pthread_cleanup_dest
>>>> _pthread_get_state
>>>> _pthread_invoke_cancel
>>>> _pthread_key_dest
>>>> _pthread_rel_time_in_ms
>>>> _pthread_set_state
>>>> _pthread_time_in_ms
>>>> _pthread_time_in_ms_from_timespec
>>>> _pthread_tryjoin
>>>> pthread_attr_destroy
>>>> pthread_attr_getdetachstate
>>>> pthread_attr_getinheritsched
>>>> pthread_attr_getschedparam
>>>> pthread_attr_getscope
>>>> pthread_attr_getstackaddr
>>>> pthread_attr_getstacksize
>>>> pthread_attr_init
>>>> pthread_attr_setdetachstate
>>>> pthread_attr_setinheritsched
>>>> pthread_attr_setschedparam
>>>> pthread_attr_setscope
>>>> pthread_attr_setstackaddr
>>>> pthread_attr_setstacksize
>>>> pthread_barrier_destroy
>>>> pthread_barrier_init
>>>> pthread_barrier_wait
>>>> pthread_barrierattr_destroy
>>>> pthread_barrierattr_getpshared
>>>> pthread_barrierattr_init
>>>> pthread_barrierattr_setpshared
>>>> pthread_cancel
>>>> pthread_cond_broadcast
>>>> pthread_cond_destroy
>>>> pthread_cond_init
>>>> pthread_cond_signal
>>>> pthread_cond_timedwait
>>>> pthread_cond_wait
>>>> pthread_condattr_destroy
>>>> pthread_condattr_getclock
>>>> pthread_condattr_getpshared
>>>> pthread_condattr_init
>>>> pthread_condattr_setclock
>>>> pthread_condattr_setpshared
>>>> pthread_create
>>>> pthread_create_wrapper
>>>> pthread_delay_np
>>>> pthread_detach
>>>> pthread_equal
>>>> pthread_exit
>>>> pthread_get_concurrency
>>>> pthread_getclean
>>>> pthread_getconcurrency
>>>> pthread_getevent
>>>> pthread_gethandle
>>>> pthread_getschedparam
>>>> pthread_getspecific
>>>> pthread_join
>>>> pthread_key_create
>>>> pthread_key_delete
>>>> pthread_kill
>>>> pthread_mutex_destroy
>>>> pthread_mutex_init
>>>> pthread_mutex_lock
>>>> pthread_mutex_timedlock
>>>> pthread_mutex_trylock
>>>> pthread_mutex_unlock
>>>> pthread_mutexattr_destroy
>>>> pthread_mutexattr_getprioceiling
>>>> pthread_mutexattr_getprotocol
>>>> pthread_mutexattr_getpshared
>>>> pthread_mutexattr_gettype
>>>> pthread_mutexattr_init
>>>> pthread_mutexattr_setprioceiling
>>>> pthread_mutexattr_setprotocol
>>>> pthread_mutexattr_setpshared
>>>> pthread_mutexattr_settype
>>>> pthread_num_processors_np
>>>> pthread_once
>>>> pthread_rwlock_destroy
>>>> pthread_rwlock_init
>>>> pthread_rwlock_rdlock
>>>> pthread_rwlock_timedrdlock
>>>> pthread_rwlock_timedwrlock
>>>> pthread_rwlock_tryrdlock
>>>> pthread_rwlock_trywrlock
>>>> pthread_rwlock_unlock
>>>> pthread_rwlock_wrlock
>>>> pthread_rwlockattr_destroy
>>>> pthread_rwlockattr_getpshared
>>>> pthread_rwlockattr_init
>>>> pthread_rwlockattr_setpshared
>>>> pthread_self
>>>> pthread_set_concurrency
>>>> pthread_set_num_processors_np
>>>> pthread_setcancelstate
>>>> pthread_setcanceltype
>>>> pthread_setconcurrency
>>>> pthread_setschedparam
>>>> pthread_setspecific
>>>> pthread_spin_destroy
>>>> pthread_spin_init
>>>> pthread_spin_lock
>>>> pthread_spin_trylock
>>>> pthread_spin_unlock
>>>> pthread_testcancel
>>>> pthread_timechange_handler_np
>>>> pthread_tls_init
>>>> sched_get_priority_max
>>>> sched_get_priority_min
>>>> sched_getscheduler
>>>> sched_setscheduler
>>>> sched_yield
>>>> sem_close
>>>> sem_destroy
>>>> sem_getvalue
>>>> sem_init
>>>> sem_open
>>>> sem_post
>>>> sem_post_multiple
>>>> sem_timedwait
>>>> sem_trywait
>>>> sem_unlink
>>>> sem_wait
>>>>
>>>> What am I doing wrongly?
>>>>
>>>> Regards.
>>>
>>> Can you check in the public pthread header? See if it has the relevant
>>> dllexport/dllimport attribute.
>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Write once. Port to many.
>>> Get the SDK and tools to simplify cross-platform app development. Create
>>> new or port existing apps to sell to consumers worldwide. Explore the
>>> Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
>>> http://p.sf.net/sfu/intel-appdev
>>> _______________________________________________
>>> Mingw-w64-public mailing list
>>> Mingw-w64-public@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
>>>
>
> ------------------------------------------------------------------------------
> Write once. Port to many.
> Get the SDK and tools to simplify cross-platform app development. Create
> new or port existing apps to sell to consumers worldwide. Explore the
> Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
> http://p.sf.net/sfu/intel-appdev
> _______________________________________________
> Mingw-w64-public mailing list
> Mingw-w64-public@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
>

------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to