Hi,

venu wrote:
> Hi Yogi,
>  
> In case you are getting that error it means that it is not supported 
> by you use the one which michael suggested but that can only done 
> during thread creation time not dynamically... these are nothing to do 
> with anriod but it dependent on posix library used in the
> anriod.
but I think that the second one is dynamically because
the code use the sys_sched_setscheduler that change the policy and the 
priority of the thread. Maybe is possible to create a stub of the
setprio, just take the current sched_param, change the prio field and 
call the pthread_setschedparam
>  
> Cheers,
> Venu
Michael
>
> On Sun, Jun 7, 2009 at 2:39 PM, Michael Trimarchi 
> <[email protected] <mailto:[email protected]>> wrote:
>
>
>     Hi,
>
>     Yogi wrote:
>     > Hi All,
>     >
>     > I want to change the pthread priority which i have created using
>     > pthread_create() function.
>     > I tried with pthread_setschedprio() pthread function, but i throws
>     > linking error as below:
>     >
>     > undefined reference to `pthread_setschedprio'
>     >
>     pthread_attr_setschedparam
>     pthread_setschedparam
>
>     The two funtions are implemented. You can see the code in the
>     bionic. I
>     never used them
>     but I think that they do the right thing.
>
>     Michael
>     > Is pthread pthread_setschedprio() function supported on android?
>     > Can you please suggest how I can resolve this error?
>     >
>     > Thanks & Regards,
>     > Yogesh
>     >
>     > >
>     >
>     >
>
>
>
>     -- 
>     - J. Venumadhav
>
>     >


--~--~---------~--~----~------------~-------~--~----~
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting
-~----------~----~----~----~------~----~------~--~---

Reply via email to