Open MPI logo

Hardware Locality Development Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Hardware Locality Development mailing list

Subject: Re: [hwloc-devel] release status
From: Jeff Squyres (jsquyres_at_[hidden])
Date: 2009-10-05 12:07:48


On Oct 5, 2009, at 10:34 AM, Brice Goglin wrote:

> I haven't had time to actually fully implement this yet, but my last
> plan was opaque pointer + functions such as:
> hwloc_cpuset_t hwloc_cpuset_alloc(void);
> void hwloc_cpuset_destroy(hwloc_cpuset_t cpuset);
>

Minor quibble: it might be good to have nice "opposites" in the verbs
-- alloc and free, create and destroy, etc.

> hwloc_cpuset_t hwloc_cpuset_copy(hwloc_cpuset_t cpuset);
> with
> typedef struct hwloc_cpuset_s * hwloc_cpuset_t;
>

I like having the concept of a fully opaque pointer such that users
will be compelled to use the alloc/free functions.

-- 
Jeff Squyres
jsquyres_at_[hidden]