Re: Change time_t to signed type

2024-11-04 Thread Guiding Li
duced a requirement for time_t to be 64 > bits. As has already been noted this is itself a substantial change. > > Byron > > On 4 Nov 2024, at 11:33 PM, Guiding Li > wrote: > > Hi all: > > We decide change 'time_t' from unsigned type to signed type in

Change time_t to signed type

2024-11-04 Thread Guiding Li
Hi all: We decide change 'time_t' from unsigned type to signed type in PR: https://github.com/apache/nuttx/pull/14460 Because when compile some POSIX library, there always be a warning on comparison between time_t and zero. For example: The following code will generate warnings: auto now = time

Re: The behavior of spin_lock needs everyone's advice

2025-02-05 Thread Guiding Li
Hi Chao, For these two options: *Option 1:* spin_lock: spin lock spin_lock_nopreempt:spin_lock + sched_lock spin_lock_irqsave: spin lock + irqsave spin_lock_irqsave_nopreempt: spin_lock + irq save + sched_lock *Option 2:*