lkml.org 
[lkml]   [2006]   [Apr]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRE: kfree(NULL)
    From
    Date
    On Fri, 2006-04-21 at 15:53 -0700, Hua Zhong wrote:
    > > struct likeliness {
    > > char *file;
    > > int line;
    > > atomic_t true_count;
    > > atomic_t false_count;
    > > struct likeliness *next;
    > > };
    >
    > It seems including atomic.h inside compiler.h is a bit tricky (might have interdependency).
    >
    > Can we just live with int instead of atomic_t? We don't really care about losing a count occasionally..

    It's nice so you don't have to fool around with locking .. The atomic_t
    structure is pretty simple thought . I think it boils down to just an
    int anyway .

    Daniel

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2006-04-22 01:01    [W:0.019 / U:61.856 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site