On Mon, 9 Aug 2010, Enlightenment SVN wrote:

> Log:
>  implement threadsafety for arrays, alter all eina internal array usage to 
> (hopefully) be threadsafe
>  call eina_threads_init() to enable this if you have pthread rwlock support 
> (posix 2001)
>  note some function prototypes have lost const on array params to allow 
> locking
>  WARNING: you should NOT call eina_threads_shutdown unless you are positive 
> that you will not use any arrays which were created while threadsafe mode 
> were enabled, and vice versa.  Failing to adhere to this warning WILL result 
> in either deadlocks or memory leaks.

> Modified: trunk/eina/src/lib/eina_array.c
> ===================================================================
> --- trunk/eina/src/lib/eina_array.c   2010-08-10 02:35:07 UTC (rev 50950)
> +++ trunk/eina/src/lib/eina_array.c   2010-08-10 03:26:15 UTC (rev 50951)

>
> -static void        eina_array_iterator_free(Eina_Iterator_Array *it)
> -EINA_ARG_NONNULL(1);
> -static Eina_Array *eina_array_iterator_get_container(Eina_Iterator_Array *it)
> -EINA_ARG_NONNULL(1);
> +static void        eina_array_iterator_free(Eina_Iterator_Array *it) 
> EINA_ARG_NONNULL(1);
> +static Eina_Array *eina_array_iterator_get_container(Eina_Iterator_Array 
> *it) EINA_ARG_NONNULL(1);
> static Eina_Bool   eina_array_iterator_next(Eina_Iterator_Array *it,
>                                             void **data) EINA_ARG_NONNULL(1);
>
> static Eina_Bool   eina_array_accessor_get_at(Eina_Accessor_Array *it,
>                                               unsigned int idx,
>                                               void **data) 
> EINA_ARG_NONNULL(1);
> +static Eina_Array *eina_array_accessor_get_container(Eina_Accessor_Array 
> *it) EINA_ARG_NONNULL(1);
> +static void        eina_array_accessor_free(Eina_Accessor_Array *it) 
> EINA_ARG_NONNULL(1);

what's the purpose of using EINA_ARG_NONNULL with functions used only in 
code ?

Vincent

------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to